From: aardizio Date: Mon, 22 Feb 2021 17:40:22 +0000 (+0100) Subject: New bench execution and sleep between a test and another X-Git-Tag: v2.0.0~27 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3be5ac00a9f736bda56c5ef053c4cd3b17f851f6;p=poolifier.git New bench execution and sleep between a test and another --- diff --git a/benchmarks/versus-external-pools/BENCH-100000.MD b/benchmarks/versus-external-pools/BENCH-100000.MD index 27371b2b..0baa4b4f 100644 --- a/benchmarks/versus-external-pools/BENCH-100000.MD +++ b/benchmarks/versus-external-pools/BENCH-100000.MD @@ -1,8 +1,8 @@ | Command | Mean [s] | Min [s] | Max [s] | Relative | |:---|---:|---:|---:|---:| -| `node static-suchmokuo-node-worker-threads-pool.js` | 50.403 ± 1.280 | 46.822 | 51.241 | 1.04 ± 0.04 | -| `node dynamic-suchmokuo-node-worker-threads-pool.js` | 62.664 ± 0.158 | 62.329 | 62.852 | 1.29 ± 0.03 | -| `node dynamic-poolifier.js` | 48.517 ± 1.233 | 47.662 | 51.249 | 1.00 | -| `node fixed-poolifier.js` | 48.539 ± 1.247 | 47.848 | 52.056 | 1.00 ± 0.04 | -| `node dynamic-piscina.js` | 51.187 ± 0.184 | 50.986 | 51.579 | 1.06 ± 0.03 | -| `node fixed-piscina.js` | 51.259 ± 0.087 | 51.114 | 51.404 | 1.06 ± 0.03 | +| `node dynamic-piscina.js` | 48.207 ± 0.383 | 47.715 | 49.117 | 1.06 ± 0.01 | +| `node fixed-piscina.js` | 48.398 ± 0.146 | 48.194 | 48.626 | 1.07 ± 0.01 | +| `node dynamic-poolifier.js` | 45.319 ± 0.813 | 44.667 | 47.532 | 1.00 ± 0.02 | +| `node fixed-poolifier.js` | 45.308 ± 0.194 | 44.997 | 45.648 | 1.00 | +| `node static-suchmokuo-node-worker-threads-pool.js` | 47.804 ± 0.188 | 47.431 | 47.993 | 1.06 ± 0.01 | +| `node dynamic-suchmokuo-node-worker-threads-pool.js` | 61.837 ± 2.315 | 59.423 | 64.619 | 1.36 ± 0.05 | diff --git a/benchmarks/versus-external-pools/bench.sh b/benchmarks/versus-external-pools/bench.sh index 290df239..8b361aa4 100755 --- a/benchmarks/versus-external-pools/bench.sh +++ b/benchmarks/versus-external-pools/bench.sh @@ -16,9 +16,10 @@ export NODE_ENV=production export POOL_SIZE=10 export NUM_ITERATIONS=100000 hyperfine --export-markdown BENCH-100000.MD --min-runs 10 \ - 'node static-suchmokuo-node-worker-threads-pool.js' \ - 'node dynamic-suchmokuo-node-worker-threads-pool.js' \ + --prepare 'sleep 15' \ + 'node dynamic-piscina.js' \ + 'node fixed-piscina.js' \ 'node dynamic-poolifier.js' \ 'node fixed-poolifier.js' \ - 'node dynamic-piscina.js' \ - 'node fixed-piscina.js' + 'node static-suchmokuo-node-worker-threads-pool.js' \ + 'node dynamic-suchmokuo-node-worker-threads-pool.js'