From 6bb19f6bf0e0d262e46fa60324990135404e6d0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 19 Jun 2023 14:27:29 +0200 Subject: [PATCH] fix: ensure piscina properly simulate fixed pool MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- benchmarks/versus-external-pools/fixed-piscina.js | 1 + benchmarks/versus-external-pools/fixed-tinypool.mjs | 1 + 2 files changed, 2 insertions(+) diff --git a/benchmarks/versus-external-pools/fixed-piscina.js b/benchmarks/versus-external-pools/fixed-piscina.js index 8a92dbea..5ddc612f 100644 --- a/benchmarks/versus-external-pools/fixed-piscina.js +++ b/benchmarks/versus-external-pools/fixed-piscina.js @@ -12,6 +12,7 @@ const data = { const piscina = new Piscina({ filename: './workers/piscina/function-to-bench-worker.js', minThreads: size, + maxThreads: size, idleTimeout: 60000 // this is the same as poolifier default }) diff --git a/benchmarks/versus-external-pools/fixed-tinypool.mjs b/benchmarks/versus-external-pools/fixed-tinypool.mjs index 223c0f00..c6e7c049 100644 --- a/benchmarks/versus-external-pools/fixed-tinypool.mjs +++ b/benchmarks/versus-external-pools/fixed-tinypool.mjs @@ -12,6 +12,7 @@ const data = { const tinypool = new Tinypool({ filename: './workers/tinypool/function-to-bench-worker.js', minThreads: size, + maxThreads: size, idleTimeout: 60000 // this is the same as poolifier default }) -- 2.34.1