docs: update benchmarks vs. external pools
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 13 Apr 2023 15:24:46 +0000 (17:24 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 13 Apr 2023 15:24:46 +0000 (17:24 +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
benchmarks/versus-external-pools/package.json
benchmarks/versus-external-pools/pnpm-lock.yaml

index b4c03c518c0632af19a13afeefbd3bc4f58bf6b7..d8d5868998f08f9305d44723c9a87313a484f746 100644 (file)
@@ -1,13 +1,13 @@
 | Command                                              |       Mean [s] | Min [s] | Max [s] |    Relative |
 | :--------------------------------------------------- | -------------: | ------: | ------: | ----------: |
-| `node dynamic-poolifier.js`                          | 13.050 ± 0.277 |  12.720 |  13.549 | 1.01 ± 0.03 |
-| `node fixed-poolifier.js`                            | 12.869 ± 0.305 |  12.573 |  13.599 |        1.00 |
-| `node dynamic-piscina.js`                            | 13.588 ± 0.180 |  13.367 |  13.987 | 1.06 ± 0.03 |
-| `node fixed-piscina.js`                              | 14.062 ± 0.216 |  13.914 |  14.557 | 1.09 ± 0.03 |
-| `node dynamic-workerpool.js`                         | 15.047 ± 0.214 |  14.841 |  15.617 | 1.17 ± 0.03 |
-| `node fixed-workerpool.js`                           | 15.545 ± 0.154 |  15.413 |  15.932 | 1.21 ± 0.03 |
-| `node dynamic-suchmokuo-node-worker-threads-pool.js` | 21.944 ± 0.303 |  21.600 |  22.713 | 1.71 ± 0.05 |
-| `node static-suchmokuo-node-worker-threads-pool.js`  | 15.247 ± 0.161 |  15.112 |  15.660 | 1.18 ± 0.03 |
-| `node threadjs.js`                                   | 46.652 ± 2.089 |  43.577 |  50.186 | 3.63 ± 0.18 |
-| `node fixed-threadwork.js`                           | 14.824 ± 0.257 |  14.632 |  15.395 | 1.15 ± 0.03 |
-| `node fixed-microjob.js`                             | 30.604 ± 0.275 |  30.091 |  31.114 | 2.38 ± 0.06 |
+| `node dynamic-poolifier.js`                          | 13.106 ± 0.110 |  12.961 |  13.262 | 1.00 ± 0.02 |
+| `node fixed-poolifier.js`                            | 13.056 ± 0.259 |  12.831 |  13.679 |        1.00 |
+| `node dynamic-piscina.js`                            | 13.753 ± 0.156 |  13.619 |  14.122 | 1.05 ± 0.02 |
+| `node fixed-piscina.js`                              | 14.327 ± 0.222 |  14.163 |  14.918 | 1.10 ± 0.03 |
+| `node dynamic-workerpool.js`                         | 15.402 ± 0.306 |  15.196 |  16.218 | 1.18 ± 0.03 |
+| `node fixed-workerpool.js`                           | 15.811 ± 0.213 |  15.696 |  16.386 | 1.21 ± 0.03 |
+| `node dynamic-suchmokuo-node-worker-threads-pool.js` | 22.463 ± 0.359 |  22.176 |  23.420 | 1.72 ± 0.04 |
+| `node static-suchmokuo-node-worker-threads-pool.js`  | 15.540 ± 0.247 |  15.356 |  16.166 | 1.19 ± 0.03 |
+| `node threadjs.js`                                   | 48.158 ± 2.432 |  43.090 |  51.882 | 3.69 ± 0.20 |
+| `node fixed-threadwork.js`                           | 15.056 ± 0.218 |  14.861 |  15.621 | 1.15 ± 0.03 |
+| `node fixed-microjob.js`                             | 31.487 ± 0.369 |  31.036 |  32.105 | 2.41 ± 0.06 |
index bddeb12e81fead7db576f5646ce968cda5d49c28..4da72301819582bea64d25a4b2c5e74092e3bf75 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-hyperfine --export-markdown BENCH-100000.md --min-runs 10 \
+/home/linuxbrew/.linuxbrew/bin/hyperfine --export-markdown BENCH-100000.md --min-runs 10 \
   --prepare 'sleep 15' \
   'node dynamic-poolifier.js' \
   'node fixed-poolifier.js' \
index 6530c10fbe54bbc29fd0127f955aa73e56fb6ab7..47aecd563c511928d1b45a2bb46b129d64ad765e 100644 (file)
@@ -12,7 +12,7 @@
     "microjob": "0.7.0",
     "node-worker-threads-pool": "1.5.1",
     "piscina": "3.2.0",
-    "poolifier": "2.4.7",
+    "poolifier": "2.4.8",
     "threads": "1.7.0",
     "threadwork": "0.6.0",
     "worker-nodes": "2.4.0",
index 855edbfede3f5f2c3c021623dae5ff45b26c4862..7ae4cf9f5a8d048dba8f5bc73046725cf6a27bf3 100644 (file)
@@ -11,8 +11,8 @@ dependencies:
     specifier: 3.2.0
     version: 3.2.0
   poolifier:
-    specifier: 2.4.7
-    version: 2.4.7
+    specifier: 2.4.8
+    version: 2.4.8
   threads:
     specifier: 1.7.0
     version: 1.7.0
@@ -173,8 +173,8 @@ packages:
       find-up: 5.0.0
     dev: false
 
-  /poolifier@2.4.7:
-    resolution: {integrity: sha512-rX/PnMAXSOiN0XWHqP3QswcaeI3P7g1tRqt6FwYlvWEWbSvUuZNVkV2w2UlAgUwdkR1f1a4eoj3+D/TJj1dfpw==}
+  /poolifier@2.4.8:
+    resolution: {integrity: sha512-pXVy10pySXF8b8jC8kme6yjp+Ldv73LCj5cOcy1DwMK7OlsLi83ezUjxy70WKRvhEakKtapv5hb1sAOuoCi81w==}
     engines: {node: '>=16.0.0'}
     requiresBuild: true
     dev: false