HTML Preparation code:
x
 
1
2
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js'></script>
Script Preparation code:
 
var $liElement = $('<li><a class="element"><span>Test</span></a></li>');
Tests:
  • find by tag a

     
    $liElement.find("a");
  • find by class element

     
    $liElement.find(".element");
  • children

     
    $liElement.children();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    find by tag a
    find by class element
    children

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78 on Windows
View result in a separate tab
Test name Executions per second
find by tag a 393090.7 Ops/sec
find by class element 348211.9 Ops/sec
children 1940315.4 Ops/sec