Ajax JSONP vs Ajax JSON (v3)

Revision 3 of this benchmark created by Grant on


Description

Tests loading of large datasets

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://ejohn.org/apps/jsonvxml2/jsonp-test/1600.js',
 dataType: 'jsonp',
 jsonp: 'loaded',
 success: function() { deferred.resolve(); }
});
ready
Ajax JSON
// async test
$.ajax({
 type: 'GET',
 url: 'http://ejohn.org/apps/jsonvxml2/json-test/1600.js',
 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.