From 330c5a7ff614c73b7b1704c7ccd459ffe1e924ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 26 Jun 2023 23:23:50 +0200 Subject: [PATCH] docs: update benchmarks vs. external pools 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/BENCH-100000.md | 14 ++++++++++++++ .../versus-external-pools/hyperfine_benchmarks.sh | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/benchmarks/versus-external-pools/BENCH-100000.md b/benchmarks/versus-external-pools/BENCH-100000.md index e69de29b..f26b3cfb 100644 --- a/benchmarks/versus-external-pools/BENCH-100000.md +++ b/benchmarks/versus-external-pools/BENCH-100000.md @@ -0,0 +1,14 @@ +| Command | Mean [s] | Min [s] | Max [s] | Relative | +| :------------------------------------------ | -------------: | ------: | ------: | ----------: | +| `node dynamic-poolifier.mjs` | 14.127 ± 0.180 | 13.900 | 14.758 | 1.01 ± 0.03 | +| `node fixed-poolifier.mjs` | 13.986 ± 0.343 | 13.724 | 14.917 | 1.00 | +| `node dynamic-piscina.mjs` | 14.985 ± 0.267 | 14.859 | 16.106 | 1.07 ± 0.03 | +| `node fixed-piscina.mjs` | 16.188 ± 0.257 | 16.001 | 17.030 | 1.16 ± 0.03 | +| `node fixed-tinypool.mjs` | 16.187 ± 0.220 | 16.044 | 17.086 | 1.16 ± 0.03 | +| `node dynamic-tinypool.mjs` | 15.063 ± 0.197 | 14.931 | 15.856 | 1.08 ± 0.03 | +| `node dynamic-workerpool.mjs` | 16.526 ± 0.151 | 16.359 | 16.964 | 1.18 ± 0.03 | +| `node fixed-workerpool.mjs` | 16.987 ± 0.173 | 16.846 | 17.676 | 1.21 ± 0.03 | +| `node dynamic-worker-nodes.js` | 15.652 ± 0.138 | 15.478 | 15.991 | 1.12 ± 0.03 | +| `node fixed-worker-nodes.js` | 16.330 ± 0.234 | 16.160 | 16.989 | 1.17 ± 0.03 | +| `node dynamic-node-worker-threads-pool.mjs` | 24.701 ± 0.352 | 24.459 | 25.842 | 1.77 ± 0.05 | +| `node static-node-worker-threads-pool.mjs` | 16.581 ± 0.159 | 16.475 | 17.217 | 1.19 ± 0.03 | diff --git a/benchmarks/versus-external-pools/hyperfine_benchmarks.sh b/benchmarks/versus-external-pools/hyperfine_benchmarks.sh index 011e986b..67d25af3 100755 --- a/benchmarks/versus-external-pools/hyperfine_benchmarks.sh +++ b/benchmarks/versus-external-pools/hyperfine_benchmarks.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -hyperfine --export-markdown BENCH-100000.md --min-runs 20 --prepare 'sleep 2' --warmup 2 --show-output \ +hyperfine --export-markdown BENCH-100000.md --min-runs 20 --prepare 'sleep 5' --warmup 3 --show-output \ 'node dynamic-poolifier.mjs' \ 'node fixed-poolifier.mjs' \ 'node dynamic-piscina.mjs' \ -- 2.34.1