test: cleanup worker function
[poolifier.git] / benchmarks / benchmarks-utils.js
index e6abe96d5b1e065c07b709bd83c37095e9996935..6eed668bd16b33d9f7f6598ed2a680285d884e36 100644 (file)
@@ -7,7 +7,7 @@ async function runPoolifierTest (pool, { tasks, workerData }) {
       pool
         .execute(workerData)
         .then(() => {
-          executions++
+          ++executions
           if (executions === tasks) {
             return resolve({ ok: 1 })
           }