Testing

Benchmark created on


Description

Just testing JSON parse times

Setup

let str = "[";

for (let i  = 0; i < 100000; i++) {
   str += "[1, 12, 14, \"Some Text\"],"
}
str += "[]]";

let jsonStr = "[";
for (let i  = 0; i < 100000; i++) {
   jsonStr += '{"a": 1, "b": 2, "c": 3, "d": "Some Text"},';
}

jsonStr += "{}]";

Test runner

Ready to run.

Testing in
TestOps/sec
Array Deserialization
let items1 = JSON.parse(str);
ready
JSON Deserialization
let items2 = JSON.parse(jsonStr);
ready

Revisions

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