jquery selector bullshit (v3)

Revision 3 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<img class="foo"  src="http://img2.cache.netease.com/cnews/2011/4/25/20110425191517158ce.jpg"/>

<img class="foo" src="http://img2.cache.netease.com/cnews/2011/4/25/20110425191517158ce.jpg"/>

<img class="foo"  src="http://img2.cache.netease.com/cnews/2011/4/25/20110425191517158ce.jpg"/>

<img class="foo"  src="http://img2.cache.netease.com/cnews/2011/4/25/20110425191517158ce.jpg"/>

Test runner

Ready to run.

Testing in
TestOps/sec
tag and id
jQuery('img.foo');
ready
just id
jQuery('.foo');
ready

Revisions

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