selector test id/id id/id class (v44)

Revision 44 of this benchmark created on


Preparation HTML

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


<div id="Mytbl">
<div id="MyElement"></div>
<div class="MyClass"></div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
Direct ID
$('#MyElement');


 
ready
Nested ID's
$('#Mytbl #MyElement')
ready
tag+ID (div#)
$('div#MyElement')
ready
tag+ID as attribute contains (div[id*=
$('div[id*="MyElement"]')
ready
tag+ID as attribute equals (div[id=)
$('div[id="MyElement"]')
ready

Revisions

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