docs: update benchmarks vs. external pools
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 26 Jun 2023 21:23:50 +0000 (23:23 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 26 Jun 2023 21:23:50 +0000 (23:23 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
benchmarks/versus-external-pools/BENCH-100000.md
benchmarks/versus-external-pools/hyperfine_benchmarks.sh

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..f26b3cfbceb4b70023acb962b50df9683158a5bb 100644 (file)
@@ -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 |
index 011e986b325e606b8d5c2f19949a937c411bac70..67d25af3623cf582b8ef9068a436e0199e4b6b69 100755 (executable)
@@ -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' \