yui3 vs jquery-selector-test

JavaScript performance comparison

Revision 7 of this test case created by Jakob Heuser

Preparation code

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

<section id="target-me">#target-me</section>
<script>
  YUI().use('node', function(Y) {
   window.Y = Y;
  });
</script>

Preparation code output

#target-me

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
jquery selector
$('#target-me');
pending…
yui3 selector
Y.one('#target-me');
pending…
Sizzle
Sizzle('#target-me');
pending…
Native
document.getElementById('target-me');
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment