docs: update benchmarks vs. external pools
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 19 Jun 2023 17:26:50 +0000 (19:26 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 19 Jun 2023 17:26:50 +0000 (19:26 +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 b5a58a368ad4b83efac3b4890e479babc2d23034..ec3dd22c8b6979b3a6da5c6f0e720c97ea70c02c 100644 (file)
@@ -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 |
index cf281a9735666d6df3e8d52b169d51b191f3e53b..7ea039988d689c7f4949dcdeb6e490b2cc858a3e 100755 (executable)
@@ -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' \