build: update volta node.js version
[poolifier.git] / benchmarks / versus-external-pools / fixed-worker-nodes.js
index 58965d212c88e8e50acc70ada69c85afe4b470f5..49f8637ded36feb2e43b2d3796607622b1ae7fc0 100644 (file)
@@ -1,11 +1,12 @@
 // IMPORT LIBRARIES
 const WorkerNodes = require('worker-nodes')
 // FINISH IMPORT LIBRARIES
-const size = Number(process.env.POOL_SIZE)
-const iterations = Number(process.env.NUM_ITERATIONS)
+const size = parseInt(process.env.POOL_SIZE)
+const iterations = parseInt(process.env.NUM_ITERATIONS)
 const data = {
   test: 'MYBENCH',
-  taskType: process.env['TASK_TYPE']
+  taskType: process.env.TASK_TYPE,
+  taskSize: parseInt(process.env.TASK_SIZE)
 }
 
 const workerNodes = new WorkerNodes(
@@ -23,6 +24,7 @@ async function run () {
     promises.push(workerNodes.call.functionToBench(data))
   }
   await Promise.all(promises)
+  // eslint-disable-next-line n/no-process-exit
   process.exit()
 }