Does #id el find all els first?

Benchmark created on


Preparation HTML

<script src="https://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

Revisions

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