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

Revision 3 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"><p></p></div><div><p id="id2"></p></div>');

Teardown


    $('div').remove();
  

Test runner

Ready to run.

Testing in
TestOps/sec
Left-hand specificity
$('#id p')
ready
Right-hand specificity
$('div #id2')
ready

Revisions

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