jQuery Selectors vs Find (v23)

Revision 23 of this benchmark created on


Preparation HTML

<div>
  <ul id="list">
    <li class="test1"></li>
  </ul>
</div>

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

Test runner

Ready to run.

Testing in
TestOps/sec
selectors
var $test1 = $('.test1')
ready
find
var $test1= $('#list').find('.test1')
ready

Revisions

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