HTML Preparation code:
AخA
 
1
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script>
2
<script>
3
  var $jq1124 = $.noConflict(true);
4
</script>
5
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
6
<script>
7
  var $jq224 = $.noConflict(true);
8
</script>
9
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
10
<script>
11
  var $jq331 = $.noConflict(true);
12
</script>
13
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
14
<script>
15
  var $jq351 = $.noConflict(true);
16
</script>
17
<div>
18
  <ul id="menu">
19
    <li class="menu-item">1</li>
20
    <li class="menu-item">2</li>
21
    <li class="menu-item">3</li>
22
    <li class="menu-item">4</li>  
23
  </ul>
24
</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:
  • $jq1124

     
    tests($jq1124);
  • $jq224

     
    tests($jq224);
  • $jq331

     
    tests($jq331);
  • $jq351

     
    tests($jq351);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    $jq1124
    $jq224
    $jq331
    $jq351

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126 on Windows
View result in a separate tab
Test name Executions per second
$jq1124 16454.8 Ops/sec
$jq224 19772.1 Ops/sec
$jq331 19220.2 Ops/sec
$jq351 15705.7 Ops/sec