$(".class") VS $("elem.class") (v2)

Revision 2 of this benchmark created on


Description

Compare select element with a class, adding or not the especific element

Preparation HTML

<div class="clase">

</div>

<div>

</div>
<p class="clase">

</p>
<p class="clase">

</p>
<div class="clase">

</div>
<div class="clase">

</div>

<div >

</div>

<div class="clase">

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

Test runner

Ready to run.

Testing in
TestOps/sec
Simple
$(".clase")
ready
With element
$("div.clase")
ready

Revisions

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