selector test id/id id/id class (v24)

Revision 24 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
ID - Class
$('#Mytbl .MyClass')
ready
find()
$("#Mytbl").find(".MyClass")
ready
Context
$("#Mytbl", "div.MyClass")
ready
ID / Class with Tag
$('#Mytbl div.MyClass')
ready

Revisions

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