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
Verify perf of parsing JSON multiple times
const json = {
"age": 21,
"eyeColor": "green",
"name": "Caldwell Bauer",
"gender": "male",
"company": "KATAKANA",
"email": "caldwellbauer@katakana.com",
"phone": "+1 (904) 476-3509",
"address": "842 Evans Street, Fannett, Mississippi, 7819",
"about": "Amet laboris elit ut cupidatat quis consequat. In amet sint reprehenderit anim sint. Eu cillum sint excepteur laborum sunt ullamco ipsum sunt cupidatat non deserunt.\r\n",
"registered": "2018-10-14T10:13:02 -06:-30",
"latitude": 40.466594,
"longitude": -163.262512,
}
const stringifiedJson = JSON.stringify(json)
Ready to run.
Test | Ops/sec | |
---|---|---|
Multiple JSON.parse |
| ready |
Single JSON.parse |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.