$(x,context) vs $(x).find

Benchmark created on


Preparation HTML

<div id="cat">
   <div id="dog"></div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Setup

cat = $('#cat');

Test runner

Ready to run.

Testing in
TestOps/sec
$(x,context)
$('.dog', cat);
ready
.find
cat.find('.dog');
ready

Revisions

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