Skip to content

4180 times faster - Using SIMD (AVX2, SSE4_1)

Compare
Choose a tag to compare
@aminya aminya released this 11 Jul 10:54
· 56 commits to master since this release

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