From: Jérôme Benoit Date: Mon, 19 Jun 2023 12:27:29 +0000 (+0200) Subject: fix: ensure piscina properly simulate fixed pool X-Git-Tag: v2.6.3~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6bb19f6bf0e0d262e46fa60324990135404e6d0d;p=poolifier.git fix: ensure piscina properly simulate fixed pool Signed-off-by: Jérôme Benoit --- 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 })