jquery.parseJSON vs JSON.parse

Benchmark created by Ephi on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Setup

var json = '{ "name": "John", "surname": "cash", "age": 15 }';

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery.parseJSON
jQuery.parseJSON(json);
ready
JSON.parse
JSON.parse(json);
ready

Revisions

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