fix: properly size the pools in benchmarking code
[poolifier.git] / benchmarks / benchmarks-utils.mjs
index 56767597b41ff848012c31d9e1f1a92d6415e8e8..48d5e41b1f0138a589fe4dbee31a762ac92db845 100644 (file)
@@ -134,14 +134,14 @@ export const buildPool = (workerType, poolType, poolSize, poolOptions) => {
         case WorkerTypes.thread:
           return new DynamicThreadPool(
             Math.floor(poolSize / 2),
-            poolSize * 3,
+            poolSize,
             './benchmarks/internal/thread-worker.mjs',
             poolOptions
           )
         case WorkerTypes.cluster:
           return new DynamicClusterPool(
             Math.floor(poolSize / 2),
-            poolSize * 3,
+            poolSize,
             './benchmarks/internal/cluster-worker.mjs',
             poolOptions
           )