jquery find vs selector lookup (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div class="parent">
<p>paragraph</p>
<ul>
<li>item</li>
<li><span class="find-me">I'm in a span</span></li>
</ul>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
selector engine
$(".parent .find-me");
ready
find
$(".parent").find(".find-me");
ready
context selector
$(".find-me",".parent");
ready

Revisions

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