jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Quick perf test to compare const data = res.json() to the splitted const text = res.text(); const data = JSON.parse(text)
const products = '{"products":[{"Name":"Cheese","Price":2.5,"Location":"Refrigerated foods"},{"Name":"Crisps","Price":3,"Location":"the Snack isle"},{"Name":"Pizza","Price":4,"Location":"Refrigerated foods"},{"Name":"Chocolate","Price":1.5,"Location":"the Snack isle"},{"Name":"Self-raising flour","Price":1.5,"Location":"Home baking"},{"Name":"Ground almonds","Price":3,"Location":"Home baking"}]}'
Ready to run.
Test | Ops/sec | |
---|---|---|
res.json() |
| ready |
JSON.parse(res.text()) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.