Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-cluster...
[poolifier.git] / benchmarks / versus-external-pools / workers / workerpool / function-to-bench-worker.mjs
index 35b2aeb8e9110ffd18b2d6fd7486293259fddb25..8515b1dc5ad8fe0aa4abc735e6450adabae28ba1 100644 (file)
@@ -1,8 +1,8 @@
 import workerpool from 'workerpool'
-import functionToBench from '../../functions/function-to-bench.mjs'
+import functionToBench from '../../functions/function-to-bench.js'
 
-async function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
-  return await functionToBench({
+const functionToBenchWrapper = (testName, taskType, taskSize) => {
+  return functionToBench({
     test: testName,
     taskType,
     taskSize
@@ -10,5 +10,5 @@ async function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
 }
 
 workerpool.worker({
-  functionToBench: workerPoolWrapperFunctionToBench
+  functionToBench: functionToBenchWrapper
 })