fix: use version from package.json
[poolifier.git] / benchmarks / benchmarks-utils.mjs
index 225143f1a1b4d1d483342ad19903e0f4affaec07..48d5e41b1f0138a589fe4dbee31a762ac92db845 100644 (file)
@@ -133,15 +133,15 @@ export const buildPool = (workerType, poolType, poolSize, poolOptions) => {
       switch (workerType) {
         case WorkerTypes.thread:
           return new DynamicThreadPool(
-            poolSize / 2,
-            poolSize * 3,
+            Math.floor(poolSize / 2),
+            poolSize,
             './benchmarks/internal/thread-worker.mjs',
             poolOptions
           )
         case WorkerTypes.cluster:
           return new DynamicClusterPool(
-            poolSize / 2,
-            poolSize * 3,
+            Math.floor(poolSize / 2),
+            poolSize,
             './benchmarks/internal/cluster-worker.mjs',
             poolOptions
           )