Ajax JSONP vs Ajax JSON (v2)

Revision 2 of this benchmark created by Malte Ubl 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: 'jsonp',
 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.