Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions benchmark/bench-cmp-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions benchmark/bench-thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down