jQuery .find() vs descendant selector (v58)

Revision 58 of this benchmark created by K on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div>
<div id="container">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div class="robotarm"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
Descendant Selector
$('#container div.robotarm');
ready
Find
$('#container').find('div.robotarm');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.