jQuery vs dojo vs mootools - Dom

JavaScript performance comparison

Revision 21 of this test case created by PEM

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js"></script><script src="//ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script><script src="//svn.dojotoolkit.org/src/dojo/trunk/dojo.js" data-dojo-config="async: true"></script>
<script>define.amd = false;</script>
<div class="content">
<p></p>
</div>
<script>
  require(["dojo/query"], function(queryModule){ query = queryModule});
</script>

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
Dojo
var d1 = query('.content');
pending…
jQuery
var j1 = jQuery('.content');
pending…
Mootols
var m1 = $$('.content');
pending…
jQuery - inside
var j2 = jQuery('.content p');
pending…
Mootools - inside
var m2 = $$('.content p');
pending…
Dojo - inside
var d2 = query('.content p');
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