JSON parsing performance

Benchmark created on


Setup

source = `{
    "target": "blob",
    "root": {
        "type": "save",
        "attrs": { "target": "blob" },
        "in": {
            "type": "brightness",
            "attrs": { "offset": -30, "clamp": true },
            "in": {
                "type": "rotate",
                "attrs": { "deg": 45, "aa": true },
                "in": {
                    "type": "input",
                    "attrs": { "source": "blob" }
                }
            }
        }
    }
}`;

obj = JSON.parse(source);

Test runner

Ready to run.

Testing in
TestOps/sec
JSON parsing
JSON.parse(source)
ready
JSON stringification
JSON.stringify(obj);
ready

Revisions

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