From: Jérôme Benoit Date: Mon, 19 Jun 2023 10:13:00 +0000 (+0200) Subject: docs: update benchmark vs. external pools X-Git-Tag: v2.6.3~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5d66c933562a69a89a89c7f2fd4a048d6177961f;p=poolifier.git docs: update benchmark vs. external pools Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/versus-external-pools/BENCH-100000.md b/benchmarks/versus-external-pools/BENCH-100000.md index 9ec2d9b0..b5a58a36 100644 --- a/benchmarks/versus-external-pools/BENCH-100000.md +++ b/benchmarks/versus-external-pools/BENCH-100000.md @@ -1,13 +1,13 @@ | Command | Mean [s] | Min [s] | Max [s] | Relative | | :--------------------------------------------------- | -------------: | ------: | ------: | ----------: | -| `node dynamic-poolifier.js` | 13.278 ± 0.226 | 12.990 | 13.750 | 1.01 ± 0.02 | -| `node fixed-poolifier.js` | 13.200 ± 0.197 | 12.966 | 13.686 | 1.00 | -| `node dynamic-piscina.js` | 14.152 ± 0.095 | 14.025 | 14.389 | 1.07 ± 0.02 | -| `node fixed-piscina.js` | 14.602 ± 0.105 | 14.516 | 14.842 | 1.11 ± 0.02 | -| `node dynamic-workerpool.js` | 15.635 ± 0.139 | 15.517 | 16.007 | 1.18 ± 0.02 | -| `node fixed-workerpool.js` | 16.165 ± 0.165 | 16.040 | 16.494 | 1.22 ± 0.02 | -| `node dynamic-suchmokuo-node-worker-threads-pool.js` | 23.543 ± 0.202 | 23.303 | 24.013 | 1.78 ± 0.03 | -| `node static-suchmokuo-node-worker-threads-pool.js` | 15.895 ± 0.244 | 15.701 | 16.404 | 1.20 ± 0.03 | -| `node threadjs.js` | 47.464 ± 2.122 | 44.962 | 51.952 | 3.60 ± 0.17 | -| `node fixed-threadwork.js` | 15.474 ± 0.287 | 15.191 | 16.225 | 1.17 ± 0.03 | -| `node fixed-microjob.js` | 31.383 ± 0.217 | 31.066 | 31.664 | 2.38 ± 0.04 | +| `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 | diff --git a/benchmarks/versus-external-pools/package.json b/benchmarks/versus-external-pools/package.json index a46aef64..294332c9 100644 --- a/benchmarks/versus-external-pools/package.json +++ b/benchmarks/versus-external-pools/package.json @@ -19,11 +19,11 @@ "dependencies": { "microjob": "0.7.0", "node-worker-threads-pool": "1.5.1", - "piscina": "3.2.0", - "poolifier": "2.6.1", + "piscina": "4.0.0", + "poolifier": "2.6.2", "threads": "1.7.0", "threadwork": "0.6.0", - "worker-nodes": "2.4.0", + "worker-nodes": "2.5.0", "workerpool": "6.4.0" } } diff --git a/benchmarks/versus-external-pools/pnpm-lock.yaml b/benchmarks/versus-external-pools/pnpm-lock.yaml index 4ee6e11d..62fd7f56 100644 --- a/benchmarks/versus-external-pools/pnpm-lock.yaml +++ b/benchmarks/versus-external-pools/pnpm-lock.yaml @@ -12,11 +12,11 @@ dependencies: specifier: 1.5.1 version: 1.5.1 piscina: - specifier: 3.2.0 - version: 3.2.0 + specifier: 4.0.0 + version: 4.0.0 poolifier: - specifier: 2.6.1 - version: 2.6.1 + specifier: 2.6.2 + version: 2.6.2 threads: specifier: 1.7.0 version: 1.7.0 @@ -24,8 +24,8 @@ dependencies: specifier: 0.6.0 version: 0.6.0 worker-nodes: - specifier: 2.4.0 - version: 2.4.0 + specifier: 2.5.0 + version: 2.5.0 workerpool: specifier: 6.4.0 version: 6.4.0 @@ -160,8 +160,8 @@ packages: engines: {node: '>=8'} dev: false - /piscina@3.2.0: - resolution: {integrity: sha512-yn/jMdHRw+q2ZJhFhyqsmANcbF6V2QwmD84c6xRau+QpQOmtrBCoRGdvTfeuFDYXB5W2m6MfLkjkvQa9lUSmIA==} + /piscina@4.0.0: + resolution: {integrity: sha512-641nAmJS4k4iqpNUqfggqUBUMmlw0ZoM5VZKdQkV2e970Inn3Tk9kroCc1wpsYLD07vCwpys5iY0d3xI/9WkTg==} dependencies: eventemitter-asyncresource: 1.0.0 hdr-histogram-js: 2.0.3 @@ -177,8 +177,8 @@ packages: find-up: 5.0.0 dev: false - /poolifier@2.6.1: - resolution: {integrity: sha512-9ir1PklqI/exULw9UDzLb9lAQC8yfJ9NvIRKAYDWKHU/9f3RXrciOeMP6RtedEcZ3RXO8cMNyR1L+p3caYo4YQ==} + /poolifier@2.6.2: + resolution: {integrity: sha512-3/bYzHdoFwJ+LCWlgVELuD9kEN1jho3RH4kG/YOo+2IX0ASVQD9SogGJ2YEW7+y9GD6vMuv9rcCkoTf2LxgaoQ==} engines: {node: '>=16.14.0', pnpm: '>=8.6.0'} requiresBuild: true dev: false @@ -212,8 +212,8 @@ packages: dev: false optional: true - /worker-nodes@2.4.0: - resolution: {integrity: sha512-s32ziQpiWkWbB/ziFKiudpm5/mreSnwpTtKzPxgcPXpl+kXpesiibjM/2Z8i/lDO8kDCUio7wQFXtndopgfsUg==} + /worker-nodes@2.5.0: + resolution: {integrity: sha512-0hPZfN21PkMMeljxvFa2+MqOAItvwWnQYMUG6HGhM0X1rTlXPAgVFY+IH4UQC/TmSi/3qMIDdrxArRR8dEdQcQ==} engines: {node: '>=11.7.0'} dev: false