\:first vs eq (v2)

Revision 2 of this benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
:first
$('.b:first')
ready
eq
$('.b').eq(0)
ready

Revisions

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