From da10c9b4f1fd6f74fe8e5ae5ada8e3f65f3ac1fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 23 Jul 2023 20:11:00 +0200 Subject: [PATCH] perf: workaround issue with cluster module and ESM MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- benchmarks/internal/bench.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/benchmarks/internal/bench.mjs b/benchmarks/internal/bench.mjs index 1fba608a..e6ee80b6 100644 --- a/benchmarks/internal/bench.mjs +++ b/benchmarks/internal/bench.mjs @@ -5,11 +5,15 @@ 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)) { -- 2.34.1