JSON.parse vs String.split (v10)

Revision 10 of this benchmark created by XFox Prower 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.