YUI3 vs. jQuery vs. Sizzle vs. Native selector test (v40)

Revision 40 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://yui.yahooapis.com/3.4.0/build/yui/yui-min.js"></script>
<script src="http://www.linkedin.com/lib/sizzle/1.0/sizzle.js"></script>

<section class="target-me" name="donuts">.target-me</section>
<section class="target-me">.target-me</section>
<section class="target-me" name="candy">.target-me</section>
<script>
  Y = YUI().use('node');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery
$('section.target-me');
ready
YUI3 Node
Y.all('section.target-me');
ready
YUI3 Selector
Y.Selector.query('section.target-me');
ready
Sizzle
Sizzle('section.target-me');
ready
Native Query Selector
document.querySelectorAll('section.target-me');
ready

Revisions

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