JSON.parse vs String.split (v9)

Revision 9 of this benchmark created on


Preparation HTML

<script>
  var str = "test,1,name,jim,age,100,address,fewijgorjegergferger";
  var jsonstr = {test: 1, name: 'jim', age: 100, address: 'ewijgorjegergerger'};
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
JSON
var result = JSON.parse(jsonstr);
ready
Split()
var result = str.split(",");
ready

Revisions

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