fix: propagate async/await properly in benchmarking code
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 25 Jun 2023 19:08:22 +0000 (21:08 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 25 Jun 2023 19:08:22 +0000 (21:08 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
benchmarks/versus-external-pools/workers/workerpool/function-to-bench-worker.mjs

index a1b8d2618b6ce0e11b7f5e066623189e64909a35..35b2aeb8e9110ffd18b2d6fd7486293259fddb25 100644 (file)
@@ -1,8 +1,8 @@
 import workerpool from 'workerpool'
 import functionToBench from '../../functions/function-to-bench.mjs'
 
-function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
-  return functionToBench({
+async function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
+  return await functionToBench({
     test: testName,
     taskType,
     taskSize