JSON Parsing

Benchmark created by Passy on


Preparation HTML

<script>
var myjson = '{"mylist": [4, 8, 15, 16, 23, 42], "myobject": {"hello": "world"}, "myint": 23, "mystrlist": ["foo", "bar"]}';
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Evil
eval('(' + myjson + ')');
ready
JSON.parse
JSON.parse(myjson);
ready
Evil join
eval(['(', myjson, ')'].join(''));
ready

Revisions

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