JSON Parsing (v2)

Revision 2 of this benchmark created 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
New Function Parse
(new Function('return ' + myjson))()
ready

Revisions

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