jQUery Selectors ('#', 'elem.class', 'class') (v26)

Revision 26 of this benchmark created by DanDuh on


Preparation HTML

<div id="testid"></div>
<div class="testclass"></div>
<span></span>

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

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery ID Selector
$("#testid");
ready
Element.Class
$("div.testclass");
ready
jQuery class Selector
$(".testclass");
ready
Native querySelector
$("span")
ready

Revisions

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