4180 times faster - Using SIMD (AVX2, SSE4_1)
This version makes minijson 4180 times faster than jsonminify. π It achieves this by using AVX2 and SSE4_1 CPU instructions.
β― .\dist\minijson-benchmark.exe --benchmark-minifyString --benchmark-minifyFiles
Benchmark minifyString
14 ms
Benchmark minifyFiles
49 ms
β― node .\benchmark\js-benchmark.mjs
Benchmark minifyString
58.502 seconds
Benchmark minifyFiles
58.703 seconds