Overqualified Selectors (v2)

Revision 2 of this benchmark created by Garrett on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="test1">
  <dl>
    <dt>
      Hi
    </dt>
    <dd>
      There
    </dd>
  </dl>
</div>
<div class="test2">
  <dl>
    <dt>
      Hi
    </dt>
    <dd>
      There
    </dd>
  </dl>
</div>
<div id="test3">
  <dl>
    <dt class="test3a">
      Hi
    </dt>
    <dd class="test3b">
      There
    </dd>
  </dl>
</div>
<div class="test4">
  <dl>
    <dt class="test4a">
      Hi
    </dt>
    <dd class="test4b">
      There
    </dd>
  </dl>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
Overqualified
var t = $("div#test1");
ready
Find by Id
var t = $("#test1");
ready

Revisions

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