From: Jérôme Benoit Date: Sun, 23 Jul 2023 19:10:50 +0000 (+0200) Subject: perf: enable tasks queue for poolifier in benchmark X-Git-Tag: v2.6.21~28 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7daf2f562e2100eb426e6a77e8972f8c2e7d123d;p=poolifier.git perf: enable tasks queue for poolifier in benchmark Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/versus-external-pools/dynamic-poolifier.mjs b/benchmarks/versus-external-pools/dynamic-poolifier.mjs index ab527ee9..e2901e5a 100644 --- a/benchmarks/versus-external-pools/dynamic-poolifier.mjs +++ b/benchmarks/versus-external-pools/dynamic-poolifier.mjs @@ -12,7 +12,10 @@ const data = { const dynamicPool = new DynamicThreadPool( Math.floor(size / 2), size, - './workers/poolifier/function-to-bench-worker.mjs' + './workers/poolifier/function-to-bench-worker.mjs', + { + enableTasksQueue: true + } ) async function run () { diff --git a/benchmarks/versus-external-pools/fixed-poolifier.mjs b/benchmarks/versus-external-pools/fixed-poolifier.mjs index 91fc4027..aaccf540 100644 --- a/benchmarks/versus-external-pools/fixed-poolifier.mjs +++ b/benchmarks/versus-external-pools/fixed-poolifier.mjs @@ -11,7 +11,10 @@ const data = { const fixedPool = new FixedThreadPool( size, - './workers/poolifier/function-to-bench-worker.mjs' + './workers/poolifier/function-to-bench-worker.mjs', + { + enableTasksQueue: true + } ) async function run () {