@mathias regarding JSON vs JS parsing performance are you able to help discover the flaw with this benchmark? https://jsperf.com/json-parse-vs-eval/6 … I’m assuming there’s something I’m missing here but I’d like to be able to accurately measure this like https://github.com/GoogleChromeLabs/json-parse-benchmark/tree/7ffba303e10910faa93cab2ba9bd643c8686a995 … but in node only.
Replying to @dylan_piercey
This benchmark is testing the "eval" cache in @v8js. It's hard to test this kind of improvement in a jsPerf-like way. I'd suggest re-using https://github.com/GoogleChromeLabs/json-parse-benchmark … (optionally with your own payload); just run the generated scripts in Node.js instead of the JS engine binaries.
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.