X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fbenchmarks-utils.mjs;h=c88ada12fa61eda4c474b4142bbd81dbb59ae06d;hb=646d040a3beab622286af393459777f74b1366ba;hp=56767597b41ff848012c31d9e1f1a92d6415e8e8;hpb=31a7d5bea6971eff8079efd2a164a66086f6d4b3;p=poolifier.git diff --git a/benchmarks/benchmarks-utils.mjs b/benchmarks/benchmarks-utils.mjs index 56767597..c88ada12 100644 --- a/benchmarks/benchmarks-utils.mjs +++ b/benchmarks/benchmarks-utils.mjs @@ -51,6 +51,7 @@ const jsonIntegerSerialization = n => { } JSON.stringify(o) } + return { ok: 1 } } /** @@ -94,6 +95,7 @@ const readWriteFiles = ( fs.readFileSync(filePath, 'utf8') } fs.rmSync(baseDirectory, { recursive: true }) + return { ok: 1 } } export const executeWorkerFunction = data => { @@ -134,14 +136,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 )