From: Jérôme Benoit Date: Mon, 19 Jun 2023 17:26:50 +0000 (+0200) Subject: docs: update benchmarks vs. external pools X-Git-Tag: v2.6.3~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=628134dbd19951f3f60bf4a99bfc7607bd2a8161;p=poolifier.git docs: update benchmarks vs. external pools Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/versus-external-pools/BENCH-100000.md b/benchmarks/versus-external-pools/BENCH-100000.md index b5a58a36..ec3dd22c 100644 --- a/benchmarks/versus-external-pools/BENCH-100000.md +++ b/benchmarks/versus-external-pools/BENCH-100000.md @@ -1,13 +1,15 @@ | Command | Mean [s] | Min [s] | Max [s] | Relative | | :--------------------------------------------------- | -------------: | ------: | ------: | ----------: | -| `node dynamic-poolifier.js` | 13.345 ± 0.195 | 13.139 | 13.826 | 1.01 ± 0.03 | -| `node fixed-poolifier.js` | 13.216 ± 0.275 | 13.007 | 13.970 | 1.00 | -| `node dynamic-piscina.js` | 14.188 ± 0.121 | 14.069 | 14.498 | 1.07 ± 0.02 | -| `node fixed-piscina.js` | 14.725 ± 0.139 | 14.607 | 15.078 | 1.11 ± 0.03 | -| `node dynamic-workerpool.js` | 15.700 ± 0.148 | 15.568 | 16.049 | 1.19 ± 0.03 | -| `node fixed-workerpool.js` | 16.192 ± 0.100 | 16.083 | 16.428 | 1.23 ± 0.03 | -| `node dynamic-suchmokuo-node-worker-threads-pool.js` | 23.746 ± 0.330 | 23.468 | 24.642 | 1.80 ± 0.05 | -| `node static-suchmokuo-node-worker-threads-pool.js` | 15.897 ± 0.210 | 15.774 | 16.486 | 1.20 ± 0.03 | -| `node threadjs.js` | 46.152 ± 2.548 | 42.212 | 50.558 | 3.49 ± 0.21 | -| `node fixed-threadwork.js` | 15.414 ± 0.075 | 15.276 | 15.537 | 1.17 ± 0.02 | -| `node fixed-microjob.js` | 31.518 ± 0.340 | 31.248 | 32.415 | 2.38 ± 0.06 | +| `node dynamic-poolifier.js` | 13.859 ± 0.196 | 13.531 | 14.551 | 1.01 ± 0.02 | +| `node fixed-poolifier.js` | 13.668 ± 0.200 | 13.469 | 14.397 | 1.00 | +| `node dynamic-piscina.js` | 14.736 ± 0.272 | 14.550 | 15.856 | 1.08 ± 0.03 | +| `node fixed-piscina.js` | 15.851 ± 0.151 | 15.696 | 16.281 | 1.16 ± 0.02 | +| `node fixed-tinypool.mjs` | 15.852 ± 0.154 | 15.713 | 16.368 | 1.16 ± 0.02 | +| `node dynamic-tinypool.mjs` | 14.739 ± 0.208 | 14.583 | 15.542 | 1.08 ± 0.02 | +| `node dynamic-workerpool.js` | 16.186 ± 0.322 | 15.963 | 17.167 | 1.18 ± 0.03 | +| `node fixed-workerpool.js` | 16.692 ± 0.190 | 16.529 | 17.447 | 1.22 ± 0.02 | +| `node dynamic-suchmokuo-node-worker-threads-pool.js` | 24.222 ± 0.324 | 23.931 | 25.367 | 1.77 ± 0.04 | +| `node static-suchmokuo-node-worker-threads-pool.js` | 16.335 ± 0.159 | 16.151 | 16.792 | 1.20 ± 0.02 | +| `node threadjs.js` | 45.991 ± 2.175 | 43.177 | 51.792 | 3.36 ± 0.17 | +| `node fixed-threadwork.js` | 15.833 ± 0.223 | 15.648 | 16.737 | 1.16 ± 0.02 | +| `node fixed-microjob.js` | 32.282 ± 0.411 | 31.831 | 33.153 | 2.36 ± 0.05 | diff --git a/benchmarks/versus-external-pools/hyperfine_benchmarks.sh b/benchmarks/versus-external-pools/hyperfine_benchmarks.sh index cf281a97..7ea03998 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 10' --warmup 10 \ +hyperfine --export-markdown BENCH-100000.md --min-runs 20 --prepare 'sleep 2' --warmup 2 \ 'node dynamic-poolifier.js' \ 'node fixed-poolifier.js' \ 'node dynamic-piscina.js' \