From: Jérôme Benoit Date: Sun, 25 Jun 2023 19:08:22 +0000 (+0200) Subject: fix: propagate async/await properly in benchmarking code X-Git-Tag: v2.6.4~25 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;ds=sidebyside;h=e5de50abad855f7e17fa2830444047d01fdd8c30;p=poolifier.git fix: propagate async/await properly in benchmarking code Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/versus-external-pools/workers/workerpool/function-to-bench-worker.mjs b/benchmarks/versus-external-pools/workers/workerpool/function-to-bench-worker.mjs index a1b8d261..35b2aeb8 100644 --- a/benchmarks/versus-external-pools/workers/workerpool/function-to-bench-worker.mjs +++ b/benchmarks/versus-external-pools/workers/workerpool/function-to-bench-worker.mjs @@ -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