qwery vs jquery vs mootools selector engines

JavaScript performance comparison

Revision 9 of this test case created

Info

a simple comparison between different selector engines

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/mootools/1.4/mootools-yui-compressed.js">
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script>
  jQuery.noConflict();
</script>
<script src="https://raw.github.com/ded/qwery/5c51e8730330b02c3dfff4afc9402af1794407e7/qwery.min.js">
</script>
<script src="https://raw.github.com/madrobby/zepto/master/src/zepto.js">
</script>
<script src="https://raw.github.com/chjj/zest/master/lib/zest.js">
</script>
<script src="https://raw.github.com/jquery/sizzle/master/sizzle.js">
</script>
<div id="myId">
  <div class="myClass">
  </div>
</div>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Slick.find
Slick.find(document, "#myId");
pending…
Slick.search
Slick.search(document, "#myId");
pending…
jQuery
jQuery("#myId");
pending…
qwery
qwery("#myId");
pending…
zepto
Zepto("#myId");
pending…
Zest
zest("#myId");
pending…
Sizzle
Sizzle("#myId");
pending…
qwery / class
qwery(".myClass");
pending…
jQuery / class
jQuery(".myClass");
pending…
querySelector
document.querySelector("#myId")
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