docs: update benchmark versus external pools results
[poolifier.git] / benchmarks / versus-external-pools / workers / workerpool / function-to-bench-worker.mjs
index d8981c8689916ef820dae21ed12f5f91df0436fe..8515b1dc5ad8fe0aa4abc735e6450adabae28ba1 100644 (file)
@@ -1,7 +1,7 @@
 import workerpool from 'workerpool'
-import functionToBench from '../../functions/function-to-bench.mjs'
+import functionToBench from '../../functions/function-to-bench.js'
 
-function wrapperFunctionToBench (testName, taskType, taskSize) {
+const functionToBenchWrapper = (testName, taskType, taskSize) => {
   return functionToBench({
     test: testName,
     taskType,
@@ -10,5 +10,5 @@ function wrapperFunctionToBench (testName, taskType, taskSize) {
 }
 
 workerpool.worker({
-  functionToBench: wrapperFunctionToBench
+  functionToBench: functionToBenchWrapper
 })