Improve benchmarks: add IO intensive task workload, add task size option, integrate...
[poolifier.git] / benchmarks / versus-external-pools / fixed-worker-nodes.js
index 58965d212c88e8e50acc70ada69c85afe4b470f5..2d4e7c2226118181b19e24537e236f3b35fd4529 100644 (file)
@@ -5,7 +5,8 @@ const size = Number(process.env.POOL_SIZE)
 const iterations = Number(process.env.NUM_ITERATIONS)
 const data = {
   test: 'MYBENCH',
-  taskType: process.env['TASK_TYPE']
+  taskType: process.env.TASK_TYPE,
+  taskSize: 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 no-process-exit
   process.exit()
 }