HTML Preparation code:
AخA
 
1
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
2
<script>
3
  var $jq171 = $.noConflict(true);
4
</script>
5
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js'></script>
6
<script>
7
  var $jq1113 = $.noConflict(true);
8
</script>
9
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script>
10
<script>
11
  var $jq1124 = $.noConflict(true);
12
</script>
13
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
14
<script>
15
  var $jq224 = $.noConflict(true);
16
</script>
17
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
18
<script>
19
  var $jq331 = $.noConflict(true);
20
</script>
21
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
22
<script>
23
  var $jq341 = $.noConflict(true);
24
</script>
25
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
26
<script>
27
  var $jq360 = $.noConflict(true);
28
</script>
29
<script src="https://code.jquery.com/jquery-4.0.0-beta.min.js"></script>
30
<script>
31
    var $jq400 = $.noConflict(true);
32
</script>
33
<div>
34
  <ul id="menu">
35
    <li class="menu-item">1</li>
36
    <li class="menu-item">2</li>
37
    <li class="menu-item">3</li>
38
    <li class="menu-item">4</li>  
39
  </ul>
40
</div>
Script Preparation code:
 
function tests($) {
    $(".menu-item").eq(2).closest("ul").css({
      "background-color": "red"
    }).parent().css({
      "border": "1px solid blue"
    }).append($("<p></p>").text("Text.").css({
      "background-color": "green"
    })).end().end().remove();
  console.log('tests' + $);
}
Tests:
  • Test jQuery 1.7.1

     
    tests($jq171);
  • Test jQuery 1.11.3

     
    tests($jq1113);
  • Test jQuery 1.12.4

     
    tests($jq1124);
  • Test jQuery 2.2.4

     
    tests($jq224);
  • Test jQuery 3.3.1

     
    tests($jq331);
  • Test jQuery 3.4.1

     
    tests($jq341);
  • Test jQuery 3.6.0

     
    tests($jq360);
  • Test jQuery 4.0.0

     
    tests($jq400);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Test jQuery 1.7.1
    Test jQuery 1.11.3
    Test jQuery 1.12.4
    Test jQuery 2.2.4
    Test jQuery 3.3.1
    Test jQuery 3.4.1
    Test jQuery 3.6.0
    Test jQuery 4.0.0

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129 on Windows
View result in a separate tab
Test name Executions per second
Test jQuery 1.7.1 79595.6 Ops/sec
Test jQuery 1.11.3 85809.5 Ops/sec
Test jQuery 1.12.4 80845.8 Ops/sec
Test jQuery 2.2.4 102803.4 Ops/sec
Test jQuery 3.3.1 100902.0 Ops/sec
Test jQuery 3.4.1 92249.1 Ops/sec
Test jQuery 3.6.0 93390.2 Ops/sec
Test jQuery 4.0.0 91397.7 Ops/sec