HTML Preparation code:
AخA
 
1
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
2
<div id="#test-root"><div class="test-child"></div></div>   
Tests:
  • Inline Selector

     
    jQuery('#test-root .test-child').css('border', '1px solid red');
  • Find

     
    jQuery('#test-root').find('.test-child').css('border', '1px solid red');
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Inline Selector
    Find

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/120.0
Firefox 120 on Windows
View result in a separate tab
Test name Executions per second
Inline Selector 394054.4 Ops/sec
Find 2379504.5 Ops/sec