From: Jérôme Benoit Date: Sun, 23 Jul 2023 18:33:19 +0000 (+0200) Subject: refactor: cleanup cluster ESM issue workaround X-Git-Tag: v2.6.21~30 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=23a6c28d3cc6edb778653a4d9d9a4d36f9a961c3;p=poolifier.git refactor: cleanup cluster ESM issue workaround Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/internal/bench.mjs b/benchmarks/internal/bench.mjs index e6ee80b6..41c035e6 100644 --- a/benchmarks/internal/bench.mjs +++ b/benchmarks/internal/bench.mjs @@ -5,19 +5,18 @@ import { } from '../../lib/index.mjs' import { PoolTypes, - WorkerFunctions - // WorkerTypes + WorkerFunctions, + WorkerTypes } from '../benchmarks-types.mjs' import { buildPool, runTest } from '../benchmarks-utils.mjs' -const WorkerTypes = Object.freeze({ - thread: 'thread' -}) - const poolSize = availableParallelism() const pools = [] for (const poolType of Object.values(PoolTypes)) { for (const workerType of Object.values(WorkerTypes)) { + if (workerType === WorkerTypes.cluster) { + continue + } for (const workerChoiceStrategy of Object.values(WorkerChoiceStrategies)) { for (const tasksQueue of [false, true]) { const pool = buildPool(