HTML Preparation code:
AخA
 
1
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Tests:
  • Vanilla JS

     
    var r = new XMLHttpRequest();
    r.open("POST", "http://vanilla-js.com/path/to/api", true);
    r.onreadystatechange = function () {
      if (r.readyState != 4 || r.status != 200) return;
      alert("Success: " + r.responseText);
    };
    r.send("banana=yellow");
  • Jquery

    x
     
    $.ajax({
      type: 'POST',
      url: "http://vanilla-js.com/path/to/api",
      data: "banana=yellow",
      success: function (data) {
        alert("Success: " + data);
      },
    });
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Vanilla JS
    Jquery

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 26 days ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Mobile Safari/537.36
Chrome Mobile 135 on Android
View result in a separate tab
Test name Executions per second
Vanilla JS 9263.6 Ops/sec
Jquery 4043.1 Ops/sec