fast-json-stringify icon indicating copy to clipboard operation
fast-json-stringify copied to clipboard

Improve benchmarks

Open Uzlopak opened this issue 2 months ago • 1 comments

We should first make some good benchmarks for strings, with various cases. E.g. I think one of the tests is repeated NUL-character (\u0000), which is basically pointless, because it should have the same performance like a string with length of 1 with one NUL character. So we should make some smart test cases and then balance the performance.

Also using tinybench, as it is more correct than any other benchmark engine right now on the market. E.g. one of the tables in benchmark.js is mathematically wrong. mitata is programmatically not correct.

Originally posted by @Uzlopak in https://github.com/fastify/fast-json-stringify/issues/792#issuecomment-3351222432

Uzlopak avatar Sep 30 '25 10:09 Uzlopak

Also read https://github.com/fastify/fast-json-stringify/pull/801#issuecomment-3384792312

cesco69 avatar Oct 09 '25 08:10 cesco69