Improve benchmarks: add IO intensive task workload, add task size option, integrate...
[poolifier.git] / benchmarks / versus-external-pools / workers / workerpool / function-to-bench-worker.js
index 02f777f7d0d95c170cdc0642cbe593b5d2066161..a883ce438eb44be74200fd00791833be6935a9fd 100644 (file)
@@ -2,8 +2,12 @@
 const workerpool = require('workerpool')
 const functionToBench = require('../../functions/function-to-bench')
 
-function workerPoolWrapperFunctionToBench (testName, taskType) {
-  return functionToBench({ test: testName, taskType: taskType })
+function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
+  return functionToBench({
+    test: testName,
+    taskType,
+    taskSize
+  })
 }
 
 workerpool.worker({