chore: switch from mitata to tatami-ng
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 7 Apr 2024 16:28:36 +0000 (18:28 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 7 Apr 2024 16:28:36 +0000 (18:28 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.vscode/launch.json
.vscode/settings.json
benchmarks/README.md
benchmarks/benchmarks-utils.mjs
benchmarks/internal/bench.mjs
benchmarks/worker-selection/round-robin.mjs
package.json
pnpm-lock.yaml

index 921886b80a6fe89f7f2b9ca7e27d41b85cff39a6..a80e9417bbba3d45b50a3b2596f3a5249bad6dc8 100644 (file)
@@ -30,7 +30,7 @@
       "name": "Launch Mitata Benchmark Debug",
       "cwd": "${workspaceFolder}",
       "runtimeExecutable": "pnpm",
-      "runtimeArgs": ["run", "benchmark:mitata:debug"],
+      "runtimeArgs": ["run", "benchmark:tatami-ng:debug"],
       "skipFiles": ["<node_internals>/**"],
       "stopOnEntry": true
     }
index ffab16b61ea561d9845dfad3fcaddbb6a6795e67..7d270f613dc5abcf5a1aeb4d89c88daf82169abc 100644 (file)
@@ -33,7 +33,7 @@
     "maxdepth",
     "microjob",
     "microtime",
-    "mitata",
+    "tatami-ng",
     "mochawesome",
     "MYBENCH",
     "nanothreads",
index 3468dce5db403f6b763b4e3c8b21918d6308b324..27467511aaee25a534213894915b3f31a89038e9 100644 (file)
@@ -25,6 +25,6 @@ See the dedicated repository [README.md](https://github.com/poolifier/benchmark#
 To run the internal benchmark, you just need to navigate to the root of poolifier cloned repository and run:
 
 - `pnpm benchmark:benchmark.js` or
-- `pnpm benchmark:mitata`
+- `pnpm benchmark:tatami-ng`
 
 ### [Results](https://bencher.dev/perf/poolifier)
index 06ebbfa15a72aefa15df416fe25fd366e5e8ed5b..85bc57fc4e39b0c3ec5a4dc2288f431846554eb9 100644 (file)
@@ -1,7 +1,7 @@
 import { strictEqual } from 'node:assert'
 
 import Benchmark from 'benchmark'
-import { bench, clear, group, run } from 'mitata'
+import { bench, clear, group, run } from 'tatami-ng'
 
 import {
   DynamicClusterPool,
index 480998b72c935900681627839091162befbd6a23..125500f2b1391a11e0cf98f340d46e8ca1161418 100644 (file)
@@ -32,7 +32,7 @@ switch (
     allowPositionals: true
   }).values.type
 ) {
-  case 'mitata':
+  case 'tatami-ng':
     await runPoolifierBenchmarkMitata(
       'FixedThreadPool',
       WorkerTypes.thread,
index c9366262f0e87d6908d7c4bc4045dbddd1cca15e..828924503c8890d597d43bdd44692fa2c3c0d16a 100644 (file)
@@ -1,4 +1,4 @@
-import { bench, group, run } from 'mitata'
+import { bench, group, run } from 'tatami-ng'
 
 function generateWorkersArray (numberOfWorkers) {
   return [...Array(numberOfWorkers).keys()]
index 757f39d248d1fad8748405a32cbda8b7597e77c0..d912e6e117a26dddf50216f5a41b4fb7e985fafd 100644 (file)
@@ -24,9 +24,9 @@
     "benchmark:benchmark.js": "pnpm build && node --max-old-space-size=8192 --enable-source-maps benchmarks/internal/bench.mjs -t benchmark.js",
     "benchmark:benchmark.js:prod": "pnpm build:prod && node --max-old-space-size=8192 --enable-source-maps benchmarks/internal/bench.mjs -t benchmark.js",
     "benchmark:benchmark.js:debug": "pnpm build && node --max-old-space-size=8192 --enable-source-maps --inspect benchmarks/internal/bench.mjs -t benchmark.js",
-    "benchmark:mitata": "pnpm build && node --enable-source-maps benchmarks/internal/bench.mjs -t mitata",
-    "benchmark:mitata:prod": "pnpm build:prod && node --enable-source-maps benchmarks/internal/bench.mjs -t mitata",
-    "benchmark:mitata:debug": "pnpm build && node --enable-source-maps --inspect benchmarks/internal/bench.mjs -t mitata",
+    "benchmark:tatami-ng": "pnpm build && node --enable-source-maps benchmarks/internal/bench.mjs -t tatami-ng",
+    "benchmark:tatami-ng:prod": "pnpm build:prod && node --enable-source-maps benchmarks/internal/bench.mjs -t tatami-ng",
+    "benchmark:tatami-ng:debug": "pnpm build && node --enable-source-maps --inspect benchmarks/internal/bench.mjs -t tatami-ng",
     "test": "pnpm build --environment SOURCEMAP:false && cross-env NODE_ENV=test c8 mocha 'tests/**/*.test.mjs'",
     "test:debug": "pnpm build && cross-env NODE_ENV=test mocha --no-parallel --inspect 'tests/**/*.test.mjs'",
     "coverage": "c8 report --reporter=lcov",
     "husky": "^9.0.11",
     "lint-staged": "^15.2.2",
     "microtime": "^3.1.1",
-    "mitata": "github:poolifier/mitata#master",
     "mocha": "^10.4.0",
     "mochawesome": "^7.1.3",
     "prettier": "^3.2.5",
     "rollup-plugin-delete": "^2.0.0",
     "rollup-plugin-dts": "^6.1.0",
     "sinon": "^17.0.1",
+    "tatami-ng": "^0.2.0",
     "typedoc": "^0.25.12",
     "typescript": "~5.4.4"
   }
index 52c72fbcf9c8d101e734e4be0a17011d77903a10..05d26a5848f1a01aec2966294f4b06482bab9e78 100644 (file)
@@ -95,9 +95,6 @@ devDependencies:
   microtime:
     specifier: ^3.1.1
     version: 3.1.1
-  mitata:
-    specifier: github:poolifier/mitata#master
-    version: github.com/poolifier/mitata/5fa0fd7c17c51c4e95350a018f5c2653e2cdf8bd(typescript@5.4.4)
   mocha:
     specifier: ^10.4.0
     version: 10.4.0
@@ -128,6 +125,9 @@ devDependencies:
   sinon:
     specifier: ^17.0.1
     version: 17.0.1
+  tatami-ng:
+    specifier: ^0.2.0
+    version: 0.2.0(typescript@5.4.4)
   typedoc:
     specifier: ^0.25.12
     version: 0.25.12(typescript@5.4.4)
@@ -5316,6 +5316,14 @@ packages:
     engines: {node: '>=6'}
     dev: true
 
+  /tatami-ng@0.2.0(typescript@5.4.4):
+    resolution: {integrity: sha512-01WuN89KtrKcdbdpM90IazywSfNr+Cp6zjwTW/QM6z4LUqqVRJrWpbNl30qRQts2CzZElnXfVQ2rfVg08Q91ow==}
+    peerDependencies:
+      typescript: ^5.0.0
+    dependencies:
+      typescript: 5.4.4
+    dev: true
+
   /tcomb-validation@3.4.1:
     resolution: {integrity: sha512-urVVMQOma4RXwiVCa2nM2eqrAomHROHvWPuj6UkDGz/eb5kcy0x6P0dVt6kzpUZtYMNoAqJLWmz1BPtxrtjtrA==}
     dependencies:
@@ -5776,15 +5784,3 @@ packages:
     resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==}
     engines: {node: '>=12.20'}
     dev: true
-
-  github.com/poolifier/mitata/5fa0fd7c17c51c4e95350a018f5c2653e2cdf8bd(typescript@5.4.4):
-    resolution: {tarball: https://codeload.github.com/poolifier/mitata/tar.gz/5fa0fd7c17c51c4e95350a018f5c2653e2cdf8bd}
-    id: github.com/poolifier/mitata/5fa0fd7c17c51c4e95350a018f5c2653e2cdf8bd
-    name: mitata
-    version: 0.1.11
-    requiresBuild: true
-    peerDependencies:
-      typescript: ^5.0.0
-    dependencies:
-      typescript: 5.4.4
-    dev: true