refactor: cleanup cluster ESM issue workaround
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 23 Jul 2023 18:33:19 +0000 (20:33 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 23 Jul 2023 18:33:19 +0000 (20:33 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
benchmarks/internal/bench.mjs

index e6ee80b65dcf8e504b70dc04d421548831f38d7a..41c035e6ae67bd8602433fd13bef5334ef23a089 100644 (file)
@@ -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(