"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
}
"maxdepth",
"microjob",
"microtime",
- "mitata",
+ "tatami-ng",
"mochawesome",
"MYBENCH",
"nanothreads",
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)
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,
allowPositionals: true
}).values.type
) {
- case 'mitata':
+ case 'tatami-ng':
await runPoolifierBenchmarkMitata(
'FixedThreadPool',
WorkerTypes.thread,
-import { bench, group, run } from 'mitata'
+import { bench, group, run } from 'tatami-ng'
function generateWorkersArray (numberOfWorkers) {
return [...Array(numberOfWorkers).keys()]
"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"
}
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
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)
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:
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