JSON.parse and JSON.stringify (v7)

Revision 7 of this benchmark created on


Description

Testing JSON.parse() and JSON.stringify() against the example from http://json.org/example.html

Preparation HTML

<script>
  var str ='[0, "deviceIdThisIsAstring"]'
  
  var obj = JSON.parse(str);
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
JSON.parse
JSON.parse(str);
ready
eval
JSON.stringify(obj);
ready

Revisions

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