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

     
    $element.find("#child");
  • find with selector and scope

     
    $("#child", $element);
  • find with selector

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

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    find with "find"
    find with selector and scope
    find with selector

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36
Chrome 102 on Windows
View result in a separate tab
Test name Executions per second
find with "find" 925950.1 Ops/sec
find with selector and scope 710003.8 Ops/sec
find with selector 1499501.8 Ops/sec