From: Jérôme Benoit Date: Sun, 23 Jul 2023 18:11:00 +0000 (+0200) Subject: perf: workaround issue with cluster module and ESM X-Git-Tag: v2.6.21~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=da10c9b4f1fd6f74fe8e5ae5ada8e3f65f3ac1fb;p=poolifier.git perf: workaround issue with cluster module and ESM Signed-off-by: Jérôme Benoit --- 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)) {