X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Finternal%2Fbench.mjs;h=a14ecd5f12086acf98e64cc2c877c68b0bbbf91f;hb=a3b14eea63d3a2e1e473099cc502296b36cfa0c0;hp=2749da428bfcda15d881b0f934d35b54f8a603f2;hpb=041dc05b2a95b36db72525072ba54c4c58ffcf0e;p=poolifier.git diff --git a/benchmarks/internal/bench.mjs b/benchmarks/internal/bench.mjs index 2749da42..a14ecd5f 100644 --- a/benchmarks/internal/bench.mjs +++ b/benchmarks/internal/bench.mjs @@ -7,7 +7,7 @@ import { availableParallelism } from '../../lib/index.mjs' import { TaskFunctions } from '../benchmarks-types.mjs' -import { buildPool, runTest } from '../benchmarks-utils.mjs' +import { buildPoolifierPool, runPoolifierTest } from '../benchmarks-utils.mjs' const poolSize = availableParallelism() const pools = [] @@ -22,7 +22,7 @@ for (const poolType of Object.values(PoolTypes)) { for (const measurement of [Measurements.runTime, Measurements.elu]) { pools.push([ `${poolType}|${workerType}|${workerChoiceStrategy}|tasks queue:${enableTasksQueue}|measurement:${measurement}`, - buildPool(workerType, poolType, poolSize, { + buildPoolifierPool(workerType, poolType, poolSize, { workerChoiceStrategy, workerChoiceStrategyOptions: { measurement @@ -34,7 +34,7 @@ for (const poolType of Object.values(PoolTypes)) { } else { pools.push([ `${poolType}|${workerType}|${workerChoiceStrategy}|tasks queue:${enableTasksQueue}`, - buildPool(workerType, poolType, poolSize, { + buildPoolifierPool(workerType, poolType, poolSize, { workerChoiceStrategy, enableTasksQueue }) @@ -53,7 +53,7 @@ const workerData = { const addPools = pools => pools.map(([name, pool]) => { return add(name, async () => { - await runTest(pool, { + await runPoolifierTest(pool, { taskExecutions, workerData })