From: Jérôme Benoit Date: Sun, 7 Apr 2024 16:41:41 +0000 (+0200) Subject: refactor: switch from mitata to tatami-ng X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4676a95cabbad0975a245e72e822467868f95ac8;p=benchmarks-js.git refactor: switch from mitata to tatami-ng Signed-off-by: Jérôme Benoit --- diff --git a/.vscode/settings.json b/.vscode/settings.json index ca9209c..13255f7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,7 +8,6 @@ "commitlint", "deepmerge", "microtime", - "mitata", "piment", "poolifier", "preinstall", diff --git a/busy-wait.mjs b/busy-wait.mjs index 04aa41b..ec8a70d 100644 --- a/busy-wait.mjs +++ b/busy-wait.mjs @@ -1,4 +1,4 @@ -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' import { sleep } from './benchmark-utils.mjs' diff --git a/deep-clone-object.mjs b/deep-clone-object.mjs index 6796ead..00753e2 100644 --- a/deep-clone-object.mjs +++ b/deep-clone-object.mjs @@ -2,8 +2,8 @@ import deepClone from 'deep-clone' import clone from 'just-clone' import _ from 'lodash' -import { bench, group, run } from 'mitata' import { clone as rambdaClone } from 'rambda' +import { bench, group, run } from 'tatami-ng' import { generateRandomObject } from './benchmark-utils.mjs' diff --git a/deep-merge-object.mjs b/deep-merge-object.mjs index 5e1ab7b..50cc13c 100644 --- a/deep-merge-object.mjs +++ b/deep-merge-object.mjs @@ -1,8 +1,8 @@ /* eslint-disable no-unused-vars */ import deepMerge from 'deepmerge' import _ from 'lodash' -import { bench, group, run } from 'mitata' import { mergeDeepRight } from 'rambda' +import { bench, group, run } from 'tatami-ng' import { generateRandomObject } from './benchmark-utils.mjs' diff --git a/empty-array.mjs b/empty-array.mjs index 5a1e081..825088f 100644 --- a/empty-array.mjs +++ b/empty-array.mjs @@ -1,4 +1,4 @@ -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' import { generateRandomNumberArray } from './benchmark-utils.mjs' diff --git a/fibonacci.mjs b/fibonacci.mjs index 3a6a96a..2bbbaeb 100644 --- a/fibonacci.mjs +++ b/fibonacci.mjs @@ -1,4 +1,4 @@ -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' const number = 30 diff --git a/is-empty-object.mjs b/is-empty-object.mjs index 0159aca..2d78881 100644 --- a/is-empty-object.mjs +++ b/is-empty-object.mjs @@ -1,6 +1,6 @@ import _ from 'lodash' -import { bench, group, run } from 'mitata' import { isEmpty } from 'rambda' +import { bench, group, run } from 'tatami-ng' import { generateRandomObject } from './benchmark-utils.mjs' diff --git a/is-undefined.mjs b/is-undefined.mjs index 895d41c..34c2acd 100644 --- a/is-undefined.mjs +++ b/is-undefined.mjs @@ -1,4 +1,4 @@ -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' group('Is undefined', () => { bench('=== undefined', (value = undefined) => { diff --git a/json-stringify.mjs b/json-stringify.mjs index de8b81a..3844fba 100644 --- a/json-stringify.mjs +++ b/json-stringify.mjs @@ -1,4 +1,4 @@ -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' const sampleObj = { name: 'Sid', diff --git a/max.mjs b/max.mjs index 778c0ef..23fcfdf 100644 --- a/max.mjs +++ b/max.mjs @@ -1,4 +1,4 @@ -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' import { generateRandomNumberArray } from './benchmark-utils.mjs' diff --git a/min.mjs b/min.mjs index ebd22cd..858b1eb 100644 --- a/min.mjs +++ b/min.mjs @@ -1,4 +1,4 @@ -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' import { generateRandomNumberArray } from './benchmark-utils.mjs' diff --git a/package.json b/package.json index 65bbd5b..a33241c 100644 --- a/package.json +++ b/package.json @@ -67,8 +67,8 @@ "just-clone": "^6.2.0", "lodash": "^4.17.21", "microtime": "^3.1.1", - "mitata": "github:poolifier/mitata#master", "rambda": "^9.2.0", + "tatami-ng": "^0.2.0", "uuid": "^9.0.1" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b714b18..f563734 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,12 +26,12 @@ dependencies: 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) rambda: specifier: ^9.2.0 version: 9.2.0 + tatami-ng: + specifier: ^0.2.0 + version: 0.2.0(typescript@5.4.4) uuid: specifier: ^9.0.1 version: 9.0.1 @@ -3117,6 +3117,14 @@ packages: engines: {node: '>= 0.4'} 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: false + /text-extensions@2.4.0: resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==} engines: {node: '>=8'} @@ -3390,15 +3398,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: false diff --git a/promise-handling.mjs b/promise-handling.mjs index 4c20dc2..0d3f88f 100644 --- a/promise-handling.mjs +++ b/promise-handling.mjs @@ -1,4 +1,4 @@ -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' /** * diff --git a/quick-select.mjs b/quick-select.mjs index f416d2d..49dc705 100644 --- a/quick-select.mjs +++ b/quick-select.mjs @@ -1,6 +1,6 @@ import { randomInt } from 'node:crypto' -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' /** * @param numberOfWorkers diff --git a/random.mjs b/random.mjs index fa63373..37bac03 100644 --- a/random.mjs +++ b/random.mjs @@ -1,6 +1,6 @@ import { randomInt } from 'node:crypto' -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' import { secureRandom, diff --git a/shallow-clone-object.mjs b/shallow-clone-object.mjs index 5e68bf8..e01a3c4 100644 --- a/shallow-clone-object.mjs +++ b/shallow-clone-object.mjs @@ -1,7 +1,7 @@ /* eslint-disable no-unused-vars */ import _ from 'lodash' -import { bench, group, run } from 'mitata' import { assoc } from 'rambda' +import { bench, group, run } from 'tatami-ng' import { generateRandomObject } from './benchmark-utils.mjs' diff --git a/uuid-generator.mjs b/uuid-generator.mjs index 050a0db..177d7db 100644 --- a/uuid-generator.mjs +++ b/uuid-generator.mjs @@ -1,6 +1,6 @@ import { randomUUID } from 'node:crypto' -import { bench, group, run } from 'mitata' +import { bench, group, run } from 'tatami-ng' import { v4 as uuid } from 'uuid' group('UUIDv4 generator', () => {