Does #id el find all els first? (v10)

Revision 10 of this benchmark created on


Preparation HTML

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

Setup

$('body').append('<div id="id"><span/></div><span/><span/><span/><span/>');

Teardown


    $('#id').remove();
  

Test runner

Ready to run.

Testing in
TestOps/sec
#id el
$('#id span')
ready
el unrestricted
$('span')
ready
find
$("#id").find("span")
ready
context
$("span", "#id")
ready

Revisions

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