diff --git a/benchmark/bench-cmp-lib.js b/benchmark/bench-cmp-lib.js index 6a22ee0a..6d176c13 100644 --- a/benchmark/bench-cmp-lib.js +++ b/benchmark/bench-cmp-lib.js @@ -310,9 +310,9 @@ suite.add('compile-json-stringify date format', function () { suite.run().then(() => { for (const task of suite.tasks) { - const hz = task.result.hz // ops/sec - const rme = task.result.rme // relative margin of error (%) - const samples = task.result.samples.length + const hz = task.result.throughput.mean // ops/sec + const rme = task.result.latency.rme // relative margin of error (%) + const samples = task.result.latency.df + 1 // degrees of freedom + 1 = sample count const formattedHz = hz.toLocaleString('en-US', { maximumFractionDigits: 0 }) const formattedRme = rme.toFixed(2) diff --git a/benchmark/bench-thread.js b/benchmark/bench-thread.js index 235175c4..466440a1 100644 --- a/benchmark/bench-thread.js +++ b/benchmark/bench-thread.js @@ -21,9 +21,9 @@ bench.add(benchmark.name, () => { stringify(benchmark.input) }).run().then(() => { const task = bench.tasks[0] - const hz = task.result.hz // ops/sec - const rme = task.result.rme // relative margin of error (%) - const samples = task.result.samples.length + const hz = task.result.throughput.mean // ops/sec + const rme = task.result.latency.rme // relative margin of error (%) + const samples = task.result.latency.df + 1 // degrees of freedom + 1 = sample count const formattedHz = hz.toLocaleString('en-US', { maximumFractionDigits: 0 }) const formattedRme = rme.toFixed(2) diff --git a/package.json b/package.json index 6406ea24..8d6cbb13 100644 --- a/package.json +++ b/package.json @@ -62,19 +62,20 @@ } ], "devDependencies": { - "@sinclair/typebox": "^0.34.3", - "c8": "^10.1.2", + "@sinclair/typebox": "^0.34.48", + "c8": "^10.1.3", "cli-select": "^1.1.2", "compile-json-stringify": "^0.1.2", - "eslint": "^9.17.0", + "eslint": "^9.39.2", "fast-json-stringify": ".", "is-my-json-valid": "^2.20.6", - "json-accelerator": "^0.0.2", - "neostandard": "^0.12.0", - "simple-git": "^3.23.0", + "json-accelerator": "^0.1.7", + "neostandard": "^0.12.2", + "simple-git": "^3.30.0", "tinybench": "^6.0.0", - "tsd": "^0.32.0", - "webpack": "^5.90.3" + "tsd": "^0.33.0", + "typescript": "^5.9.3", + "webpack": "^5.104.1" }, "dependencies": { "@fastify/merge-json-schemas": "^0.2.0",