lucagez / slow-json-stringify

The slowest stringifier in the known universe. Just kidding, it's the fastest (:
https://github.com/lucagez/slow-json-stringify
MIT License
470 stars 16 forks source link

Does this work well with flatstr? #29

Closed RichardWright closed 3 years ago

RichardWright commented 3 years ago

Hi

Does this lib work well with https://www.npmjs.com/package/flatstr ?

kurtextrem commented 3 years ago

flatstr has an issue showing that node v12 is equally fast, so I'd say flatstr is redundant.

lucagez commented 3 years ago

Yes I can confirm flatstr optimizations are introducing a not significant increment in performance. Results are, in my tests not consistently reproducibles. I assume the difference between results should be attributed to the runtime. A draft PR about flattened otpimization + benchmarks can be found here https://github.com/lucagez/slow-json-stringify/pull/32