New bench execution and sleep between a test and another
authoraardizio <alessandroardizio94@gmail.com>
Mon, 22 Feb 2021 17:40:22 +0000 (18:40 +0100)
committeraardizio <alessandroardizio94@gmail.com>
Mon, 22 Feb 2021 17:40:22 +0000 (18:40 +0100)
benchmarks/versus-external-pools/BENCH-100000.MD
benchmarks/versus-external-pools/bench.sh

index 27371b2b4f4259e215b4cd5025e6a46036a99b42..0baa4b4fe849e5622fc7504efca01e3320ead1dc 100644 (file)
@@ -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 |
index 290df239c141e89a7154fd972d7a6c7326b162cb..8b361aa4101b3977581d946329bd167d2496cdf9 100755 (executable)
@@ -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'