HTML Preparation code:
AخA
 
1
<a id="parent" >
2
  <span id="child">Need span</span>
3
  <svg class="icon md-16 icon-shevron-right text-muted"></svg>
4
</a>
5
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js'></script>
Script Preparation code:
 
var $element = $("#parent");
Tests:
  • find with tag selector

     
    $element.find("span");
  • find with id

     
    $("#child");
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    find with tag selector
    find with id

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Windows
View result in a separate tab
Test name Executions per second
find with tag selector 1147700.8 Ops/sec
find with id 2597409.2 Ops/sec