From: Jérôme Benoit Date: Sun, 23 Jul 2023 17:11:07 +0000 (+0200) Subject: refactor: cleanup benchmark code X-Git-Tag: v2.6.21~34 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0819631dfe372ae4930cb476a7a81fb2f2a86804;p=poolifier.git refactor: cleanup benchmark code Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/internal/bench.mjs b/benchmarks/internal/bench.mjs index 1fbcc5aa..205940c3 100644 --- a/benchmarks/internal/bench.mjs +++ b/benchmarks/internal/bench.mjs @@ -39,12 +39,12 @@ for (const poolType of Object.values(PoolTypes)) { } } } + const taskExecutions = 1 const workerData = { function: WorkerFunctions.jsonIntegerSerialization, taskSize: 1000 } - const addPools = pools => pools.map(([name, pool]) => { return add(name, async () => { @@ -57,7 +57,6 @@ const addPools = pools => const resultsFile = 'poolifier' const resultsFolder = 'benchmarks/internal/results' - suite( 'Poolifier', ...addPools(pools),