Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-worker_thr...
[poolifier.git] / benchmarks / versus-external-pools / workers / workerpool / function-to-bench-worker.mjs
index a1b8d2618b6ce0e11b7f5e066623189e64909a35..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 workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
+const functionToBenchWrapper = (testName, taskType, taskSize) => {
   return functionToBench({
     test: testName,
     taskType,
@@ -10,5 +10,5 @@ function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
 }
 
 workerpool.worker({
-  functionToBench: workerPoolWrapperFunctionToBench
+  functionToBench: functionToBenchWrapper
 })