Ajax JSONP vs Ajax JSON (v17)

Revision 17 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>
<div id="content"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
Ajax JSONP
$.ajax({
 type: 'GET',
 url: 'http://www.mecalux.es/navigation/landingpage/actions/DynLandingJsonAction.do',
 dataType: 'jsonp',
 success: function(data) {
  $('#content').html(data.content);
 }
});
ready
Ajax JSON
$.ajax({
 type: 'GET',
 url: 'http://www.mecalux.es/navigation/landingpage/actions/DynLandingJsonAction.do',
 dataType: 'json',
 success: function(data) {
  $('#content').html(data.content);
 }
});
ready

Revisions

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