jQuery .find() vs. context selector (v143)

Revision 143 of this benchmark created on


Description

comparing selector speed

Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<article>
<p>A test</p>
<p><iframe></iframe></p>
<p>This is text</p>
</article>

Test runner

Ready to run.

Testing in
TestOps/sec
find method
$('article').find('iframe');

 
ready
context method
$('iframe', 'article');
ready

Revisions

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