From 727ad05494dcc35c033c26a2e4e1fd6325e2709c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 25 Jun 2023 13:50:17 +0200 Subject: [PATCH] docs: update benchmark vs. external pools MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../versus-external-pools/BENCH-100000.md | 28 ++++++------ benchmarks/versus-external-pools/package.json | 4 +- .../versus-external-pools/pnpm-lock.yaml | 44 +++++++++++++++---- 3 files changed, 53 insertions(+), 23 deletions(-) diff --git a/benchmarks/versus-external-pools/BENCH-100000.md b/benchmarks/versus-external-pools/BENCH-100000.md index bee11bc6..6144bdb4 100644 --- a/benchmarks/versus-external-pools/BENCH-100000.md +++ b/benchmarks/versus-external-pools/BENCH-100000.md @@ -1,15 +1,17 @@ | Command | Mean [s] | Min [s] | Max [s] | Relative | | :----------------------------------------- | -------------: | ------: | ------: | ----------: | -| `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-node-worker-threads-pool.js` | 24.222 ± 0.324 | 23.931 | 25.367 | 1.77 ± 0.04 | -| `node static-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 | +| `node dynamic-poolifier.js` | 14.335 ± 0.244 | 14.080 | 15.133 | 1.02 ± 0.02 | +| `node fixed-poolifier.js` | 14.070 ± 0.229 | 13.783 | 14.640 | 1.00 | +| `node dynamic-piscina.js` | 15.119 ± 0.155 | 14.973 | 15.534 | 1.07 ± 0.02 | +| `node fixed-piscina.js` | 16.444 ± 0.314 | 16.219 | 17.152 | 1.17 ± 0.03 | +| `node fixed-tinypool.mjs` | 16.360 ± 0.301 | 16.129 | 17.051 | 1.16 ± 0.03 | +| `node dynamic-tinypool.mjs` | 15.319 ± 0.282 | 14.990 | 16.117 | 1.09 ± 0.03 | +| `node dynamic-workerpool.js` | 17.021 ± 0.416 | 16.663 | 18.025 | 1.21 ± 0.04 | +| `node fixed-workerpool.js` | 17.430 ± 0.281 | 17.190 | 18.235 | 1.24 ± 0.03 | +| `node dynamic-node-worker-threads-pool.js` | 25.111 ± 0.267 | 24.885 | 25.908 | 1.78 ± 0.03 | +| `node static-node-worker-threads-pool.js` | 16.958 ± 0.235 | 16.772 | 17.846 | 1.21 ± 0.03 | +| `node threadjs.js` | 47.460 ± 2.351 | 42.898 | 53.758 | 3.37 ± 0.18 | +| `node fixed-threadwork.js` | 16.492 ± 0.239 | 16.279 | 17.453 | 1.17 ± 0.03 | +| `node fixed-microjob.js` | 33.609 ± 0.571 | 33.100 | 35.256 | 2.39 ± 0.06 | +| `node dynamic-worker-nodes.js` | 16.087 ± 0.209 | 15.907 | 16.896 | 1.14 ± 0.02 | +| `node fixed-worker-nodes.js` | 16.680 ± 0.254 | 16.480 | 17.412 | 1.19 ± 0.03 | diff --git a/benchmarks/versus-external-pools/package.json b/benchmarks/versus-external-pools/package.json index 1d6210ce..5d0691b5 100644 --- a/benchmarks/versus-external-pools/package.json +++ b/benchmarks/versus-external-pools/package.json @@ -20,11 +20,11 @@ "microjob": "0.7.0", "node-worker-threads-pool": "1.5.1", "piscina": "4.0.0", - "poolifier": "2.6.2", + "poolifier": "2.6.3", "threads": "1.7.0", "threadwork": "0.6.0", "tinypool": "0.5.0", - "worker-nodes": "2.5.0", + "worker-nodes": "2.6.0", "workerpool": "6.4.0" } } diff --git a/benchmarks/versus-external-pools/pnpm-lock.yaml b/benchmarks/versus-external-pools/pnpm-lock.yaml index 08d34f4f..fe22ee34 100644 --- a/benchmarks/versus-external-pools/pnpm-lock.yaml +++ b/benchmarks/versus-external-pools/pnpm-lock.yaml @@ -15,8 +15,8 @@ dependencies: specifier: 4.0.0 version: 4.0.0 poolifier: - specifier: 2.6.2 - version: 2.6.2 + specifier: 2.6.3 + version: 2.6.3 threads: specifier: 1.7.0 version: 1.7.0 @@ -27,8 +27,8 @@ dependencies: specifier: 0.5.0 version: 0.5.0 worker-nodes: - specifier: 2.5.0 - version: 2.5.0 + specifier: 2.6.0 + version: 2.6.0 workerpool: specifier: 6.4.0 version: 6.4.0 @@ -66,6 +66,10 @@ packages: dev: false optional: true + /event-lite@0.1.3: + resolution: {integrity: sha512-8qz9nOz5VeD2z96elrEKD2U433+L3DWdUdDkOINLGOJvx1GsMBbMn0aCeu28y8/e85A6mCigBiFlYMnTBEGlSw==} + dev: false + /eventemitter-asyncresource@1.0.0: resolution: {integrity: sha512-39F7TBIV0G7gTelxwbEqnwhp90eqCPON1k0NwNfwhgKn4Co4ybUbj2pECcXT0B3ztRKZ7Pw1JujUUgmQJHcVAQ==} dev: false @@ -90,11 +94,23 @@ packages: resolution: {integrity: sha512-7kIufnBqdsBGcSZLPJwqHT3yhk1QTsSlFsVD3kx5ixH/AlgBs9yM1q6DPhXZ8f8gtdqgh7N7/5btRLpQsS2gHw==} dev: false + /ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + dev: false + + /int64-buffer@0.1.10: + resolution: {integrity: sha512-v7cSY1J8ydZ0GyjUHqF+1bshJ6cnEVLo9EnjB8p+4HDRPZc9N5jjmvUV7NvEsqQOKyH0pmIBFWXVQbiS0+OBbA==} + dev: false + /is-observable@2.1.0: resolution: {integrity: sha512-DailKdLb0WU+xX8K5w7VsJhapwHLZ9jjmazqCJq4X12CTgqq73TKnbRcnSLuXYPOoLQgV5IrD7ePiX/h1vnkBw==} engines: {node: '>=8'} dev: false + /isarray@1.0.0: + resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} + dev: false + /locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -111,6 +127,16 @@ packages: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} dev: false + /msgpack-lite@0.1.26: + resolution: {integrity: sha512-SZ2IxeqZ1oRFGo0xFGbvBJWMp3yLIY9rlIJyxy8CGrwZn1f0ZK4r6jV/AM1r0FZMDUkWkglOk/eeKIL9g77Nxw==} + hasBin: true + dependencies: + event-lite: 0.1.3 + ieee754: 1.2.1 + int64-buffer: 0.1.10 + isarray: 1.0.0 + dev: false + /nice-napi@1.0.2: resolution: {integrity: sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==} os: ['!win32'] @@ -180,8 +206,8 @@ packages: find-up: 5.0.0 dev: false - /poolifier@2.6.2: - resolution: {integrity: sha512-3/bYzHdoFwJ+LCWlgVELuD9kEN1jho3RH4kG/YOo+2IX0ASVQD9SogGJ2YEW7+y9GD6vMuv9rcCkoTf2LxgaoQ==} + /poolifier@2.6.3: + resolution: {integrity: sha512-5kQjBXqeW8dbzlmDxKRvlC6Vi2zBrpiviVb53rupdQWIsivB6waApeJT4ayhVVLqKGrvLVr9HAeBMHBJaNUDVA==} engines: {node: '>=16.14.0', pnpm: '>=8.6.0'} requiresBuild: true dev: false @@ -220,9 +246,11 @@ packages: engines: {node: '>=14.0.0'} dev: false - /worker-nodes@2.5.0: - resolution: {integrity: sha512-0hPZfN21PkMMeljxvFa2+MqOAItvwWnQYMUG6HGhM0X1rTlXPAgVFY+IH4UQC/TmSi/3qMIDdrxArRR8dEdQcQ==} + /worker-nodes@2.6.0: + resolution: {integrity: sha512-mL4PR1fktwqYQFfzsH613MdHcfi9GeXuwvl2lWIrNvr3JMmrtBBfbbhc/qSK3oZDAQ2gTd7qZbAJktto+3ZeFw==} engines: {node: '>=11.7.0'} + dependencies: + msgpack-lite: 0.1.26 dev: false /workerpool@6.4.0: -- 2.34.1