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,
}
workerpool.worker({
- functionToBench: wrapperFunctionToBench
+ functionToBench: functionToBenchWrapper
})