does :first boost your selector? (v10)

Revision 10 of this benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
standard
$('.foo')
ready
:first
$('.foo:first')
ready

Revisions

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