AjaxTest (v3)

Revision 3 of this benchmark created on


Description

Ajax request test performance

Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
jquery ajax call GET
// async test
$.ajax({
  dataType: "json",
crossDomain :true,
  url: "http://marketcloud-origami.rhcloud.com/api/product/fetch",
  success: function(data) {
    console.dir(data)
  }
});
ready
PureJS ajax call get
// async test
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', 'http://marketcloud-origami.rhcloud.com/api/product/fetch', true);
xmlhttp.onreadystatechange = function() {
  if (xmlhttp.readyState == 4) {
    if (xmlhttp.status == 200) {
      console.dir(xmlhttp.responseText);
    }
  }
};
xmlhttp.send(null);
ready

Revisions

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