perf: use tatami-ng for continous benchmarking
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 13 May 2024 10:45:02 +0000 (12:45 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 13 May 2024 10:45:02 +0000 (12:45 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
15 files changed:
.github/workflows/internal-benchmark.yml
benchmarks/benchmarks-utils.mjs
examples/typescript/http-client-pool/package.json
examples/typescript/http-server-pool/express-cluster/package.json
examples/typescript/http-server-pool/express-hybrid/package.json
examples/typescript/http-server-pool/express-worker_threads/package.json
examples/typescript/http-server-pool/fastify-cluster/package.json
examples/typescript/http-server-pool/fastify-hybrid/package.json
examples/typescript/http-server-pool/fastify-worker_threads/package.json
examples/typescript/smtp-client-pool/package.json
examples/typescript/websocket-server-pool/ws-cluster/package.json
examples/typescript/websocket-server-pool/ws-hybrid/package.json
examples/typescript/websocket-server-pool/ws-worker_threads/package.json
package.json
pnpm-lock.yaml

index 52e806da9b05a6596a46c9fb56506f1ca1cceb84..936f0ad721c40e54ce1351dbe357106483a5678b 100644 (file)
@@ -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"
index 35c335c45877748ec332e45cd10fda5e5d4b69df..7d395d96aca6898289497e3a3da5c1d7517d75d7 100644 (file)
@@ -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) {
index 7681ff9dffcf970b5f5dc71d35c5be5bf7a2c840..21b43c62eff9e9c75d5e487c0c627920b5ca9211 100644 (file)
@@ -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",
index 4e4db2de19ca175fcbeca11d7be11dd4241c9c44..3bde602181ed8fe9bc38513e6e7f8eeb00fc21bf 100644 (file)
@@ -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",
index 053b45ff833d3f7e8cb055b68a8a655219a870be..389c6c307a3d00c02a86f48360031cb43f0db55a 100644 (file)
@@ -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",
index 0cacfd3cc11a26aba4cac596b7caeb5b8fff12f8..b67c58e667dae4e10f8edf25d2e2f50294a24e2f 100644 (file)
@@ -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",
index 71bd54990fbc832bb3339617b1948d9f83c53824..4ad77fab83e0a0a2f029c0dc7cd32c0995cb3bba 100644 (file)
@@ -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",
index 2778eb336ab89a5618aef58a4500580f8db118fe..b6bda168bf99399374cc4bcc3f18048e85d0ded7 100644 (file)
@@ -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",
index e1c3eefdeaf2e63ec88ae054b2f763f78b785f4a..279474e53a892abed41e35bb96075f071d721fe0 100644 (file)
@@ -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",
index cc5288cf97eb4c7380a1b5e76a17d4256ac10052..7fc419f05733e884f1ece3695d4449e955e93c28 100644 (file)
@@ -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",
index 343ba4e0d095f508745c690a6abc0ba1dbf684ef..18867f32ab98d89147a8a0c310d140782beb093b 100644 (file)
@@ -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",
index ea81c05078d4ca8a7b80dd9a1b08c849edb4d222..3fd2cb988ff16940af289fc453889935052c118e 100644 (file)
@@ -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",
index 6c9e1937cff995e4cafb34bfc11e624f3014ba7b..31bd96d93619ea4eefa7fcd9bed0ec4534ee06bb 100644 (file)
@@ -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",
index e30ee81c66e01f0adaa92aa65d1b0d9f63b9e55d..bf763edc6cd297974cd31142a194695f89ca62cb 100644 (file)
@@ -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"
     "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"
   }
index 374a7dff4203808ed37a31ad98e1eda329c27d48..f9cbefb144a6cff42965c2411a21798ad09a27aa 100644 (file)
@@ -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