From: Jérôme Benoit Date: Mon, 13 May 2024 10:45:02 +0000 (+0200) Subject: perf: use tatami-ng for continous benchmarking X-Git-Tag: v4.0.7~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ce711c4a4ba1e1d9ab8e40918b6ecb7ccf12f9b0;p=poolifier.git perf: use tatami-ng for continous benchmarking Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/internal-benchmark.yml b/.github/workflows/internal-benchmark.yml index 52e806da..936f0ad7 100644 --- a/.github/workflows/internal-benchmark.yml +++ b/.github/workflows/internal-benchmark.yml @@ -15,7 +15,7 @@ jobs: env: BENCHER_PROJECT: poolifier BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }} - BENCHER_ADAPTER: js_benchmark + BENCHER_ADAPTER: json BENCHER_TESTBED: self-hosted steps: - name: Checkout @@ -40,4 +40,4 @@ jobs: --hash "$GITHUB_SHA" \ --err \ --github-actions ${{ secrets.GITHUB_TOKEN }} \ - "pnpm benchmark:benchmark.js:prod" + "pnpm benchmark:tatami-ng:prod" diff --git a/benchmarks/benchmarks-utils.mjs b/benchmarks/benchmarks-utils.mjs index 35c335c4..7d395d96 100644 --- a/benchmarks/benchmarks-utils.mjs +++ b/benchmarks/benchmarks-utils.mjs @@ -1,4 +1,5 @@ import { strictEqual } from 'node:assert' +import { env } from 'node:process' import Benchmark from 'benchmark' import { bench, clear, group, run } from 'tatami-ng' @@ -321,7 +322,9 @@ export const runPoolifierBenchmarkTatamiNg = async ( } } } - await run() + await run({ + json: env.CI != null ? 'bmf' : false + }) clear() await pool.destroy() } catch (error) { diff --git a/examples/typescript/http-client-pool/package.json b/examples/typescript/http-client-pool/package.json index 7681ff9d..21b43c62 100644 --- a/examples/typescript/http-client-pool/package.json +++ b/examples/typescript/http-client-pool/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "pnpm build:clean && tsc", "build:clean": "tsc --build --clean", diff --git a/examples/typescript/http-server-pool/express-cluster/package.json b/examples/typescript/http-server-pool/express-cluster/package.json index 4e4db2de..3bde6021 100644 --- a/examples/typescript/http-server-pool/express-cluster/package.json +++ b/examples/typescript/http-server-pool/express-cluster/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "rollup --config --configPlugin typescript", "start": "node --enable-source-maps dist/main.cjs", diff --git a/examples/typescript/http-server-pool/express-hybrid/package.json b/examples/typescript/http-server-pool/express-hybrid/package.json index 053b45ff..389c6c30 100644 --- a/examples/typescript/http-server-pool/express-hybrid/package.json +++ b/examples/typescript/http-server-pool/express-hybrid/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "rollup --config --configPlugin typescript", "start": "node --enable-source-maps dist/main.cjs", diff --git a/examples/typescript/http-server-pool/express-worker_threads/package.json b/examples/typescript/http-server-pool/express-worker_threads/package.json index 0cacfd3c..b67c58e6 100644 --- a/examples/typescript/http-server-pool/express-worker_threads/package.json +++ b/examples/typescript/http-server-pool/express-worker_threads/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "pnpm build:clean && tsc", "build:clean": "tsc --build --clean", diff --git a/examples/typescript/http-server-pool/fastify-cluster/package.json b/examples/typescript/http-server-pool/fastify-cluster/package.json index 71bd5499..4ad77fab 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/package.json +++ b/examples/typescript/http-server-pool/fastify-cluster/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "rollup --config --configPlugin typescript", "start": "node --enable-source-maps dist/main.cjs", diff --git a/examples/typescript/http-server-pool/fastify-hybrid/package.json b/examples/typescript/http-server-pool/fastify-hybrid/package.json index 2778eb33..b6bda168 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/package.json +++ b/examples/typescript/http-server-pool/fastify-hybrid/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "rollup --config --configPlugin typescript", "start": "node --enable-source-maps dist/main.cjs", diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/package.json b/examples/typescript/http-server-pool/fastify-worker_threads/package.json index e1c3eefd..279474e5 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/package.json +++ b/examples/typescript/http-server-pool/fastify-worker_threads/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "pnpm build:clean && tsc", "build:clean": "tsc --build --clean", diff --git a/examples/typescript/smtp-client-pool/package.json b/examples/typescript/smtp-client-pool/package.json index cc5288cf..7fc419f0 100644 --- a/examples/typescript/smtp-client-pool/package.json +++ b/examples/typescript/smtp-client-pool/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "pnpm build:clean && tsc", "build:clean": "tsc --build --clean", diff --git a/examples/typescript/websocket-server-pool/ws-cluster/package.json b/examples/typescript/websocket-server-pool/ws-cluster/package.json index 343ba4e0..18867f32 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/package.json +++ b/examples/typescript/websocket-server-pool/ws-cluster/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "rollup --config --configPlugin typescript", "start": "node --enable-source-maps dist/main.cjs", diff --git a/examples/typescript/websocket-server-pool/ws-hybrid/package.json b/examples/typescript/websocket-server-pool/ws-hybrid/package.json index ea81c050..3fd2cb98 100644 --- a/examples/typescript/websocket-server-pool/ws-hybrid/package.json +++ b/examples/typescript/websocket-server-pool/ws-hybrid/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "rollup --config --configPlugin typescript", "start": "node --enable-source-maps dist/main.cjs", diff --git a/examples/typescript/websocket-server-pool/ws-worker_threads/package.json b/examples/typescript/websocket-server-pool/ws-worker_threads/package.json index 6c9e1937..31bd96d9 100644 --- a/examples/typescript/websocket-server-pool/ws-worker_threads/package.json +++ b/examples/typescript/websocket-server-pool/ws-worker_threads/package.json @@ -7,9 +7,9 @@ "type": "module", "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "scripts": { "build": "pnpm build:clean && tsc", "build:clean": "tsc --build --clean", diff --git a/package.json b/package.json index e30ee81c..bf763edc 100644 --- a/package.json +++ b/package.json @@ -45,9 +45,9 @@ }, "volta": { "node": "22.1.0", - "pnpm": "9.1.0" + "pnpm": "9.1.1" }, - "packageManager": "pnpm@9.1.0", + "packageManager": "pnpm@9.1.1", "repository": { "type": "git", "url": "https://github.com/poolifier/poolifier.git" @@ -143,7 +143,7 @@ "rollup-plugin-delete": "^2.0.0", "rollup-plugin-dts": "^6.1.0", "sinon": "^17.0.2", - "tatami-ng": "^0.4.4", + "tatami-ng": "^0.4.6", "typedoc": "^0.25.13", "typescript": "~5.4.5" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 374a7dff..f9cbefb1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -129,8 +129,8 @@ importers: specifier: ^17.0.2 version: 17.0.2 tatami-ng: - specifier: ^0.4.4 - version: 0.4.4(typescript@5.4.5) + specifier: ^0.4.6 + version: 0.4.6(typescript@5.4.5) typedoc: specifier: ^0.25.13 version: 0.25.13(typescript@5.4.5) @@ -2765,6 +2765,7 @@ packages: sinon@17.0.2: resolution: {integrity: sha512-uihLiaB9FhzesElPDFZA7hDcNABzsVHwr3YfmM9sBllVwab3l0ltGlRV1XhpNfIacNDLGD1QRZNLs5nU5+hTuA==} + deprecated: There slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} @@ -2913,8 +2914,8 @@ packages: resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} engines: {node: '>=6'} - tatami-ng@0.4.4: - resolution: {integrity: sha512-/YSab/Z35+RcEBSxOn6tbQqdk00Yfr0l0Wlnp+TGyr7vGzuGV4Pod1oZARZ8iG7fOI9CASNlzifV0FELii7NAg==} + tatami-ng@0.4.6: + resolution: {integrity: sha512-DR59y8nC6r+u9YbYY5objx8o+DJah0NgxktO9Ib6jMk/tETzsCfqaPOOMt6GhWi/msZ2i6mFV6D2pur5HTBkzw==} peerDependencies: typescript: ^5.0.0 @@ -6241,7 +6242,7 @@ snapshots: tapable@2.2.1: {} - tatami-ng@0.4.4(typescript@5.4.5): + tatami-ng@0.4.6(typescript@5.4.5): dependencies: typescript: 5.4.5