Multiple Js perf

Benchmark created on


Description

Verify perf of parsing JSON multiple times

Setup

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)

Test runner

Ready to run.

Testing in
TestOps/sec
Multiple JSON.parse
const a = JSON.parse(stringifiedJson)
const b = JSON.parse(stringifiedJson)
ready
Single JSON.parse
const a = JSON.parse(stringifiedJson)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.