Ajax JSONP vs Ajax JSON (v7)

Revision 7 of this benchmark created on


Description

Ajax JSONP vs Ajax JSON

Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
Ajax JSONP
// async test
$.ajax({
 type: 'GET',
 url: 'http://mathiasbynens.be/demo/ip',
 dataType: 'json',
 success: function() { deferred.resolve(); }
});
ready
Ajax JSON
// async test
$.ajax({
 type: 'GET',
 url: 'http://mathiasbynens.be/demo/ip',
 dataType: 'json',
 success: function() { deferred.resolve(); }
});
ready

Revisions

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