Dojo vs. jQuery vs. ExtJS 4.2 vs. YUI VS mootools

JavaScript performance comparison

Revision 79 of this test case created

Info

Simple test to benchmark variable allocation on inner and outer items.

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.2/dojo/dojo.js"></script><script src="//ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/prototype/1/prototype.js"></script>
<script src="//www.cinsoft.net/mylib099-min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/ext-core/3.1.0/ext-core.js"></script>
<script src="http://yui.yahooapis.com/3.12.0/build/simpleyui/simpleyui-min.js"></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
// async test
var d1 = dojo.query(".section");
pending…
Dojo Inside
// async test
var d2 = dojo.query(".section .age2");
pending…
jQuery
// async test
var j1 = jQuery('.section');
pending…
jQuery Inside
// async test
var j2 = jQuery('.section .age2');
pending…
ExtJS
// async test
var e1 = Ext.get('.section');
pending…
ExtJS Inside
// async test
var e2 = Ext.get('.section .age2');
pending…
YUI
// async test
var y1 = Y.one('.section');
pending…
YUI Inside
// async test
var y2 = Y.one('.section .age2');
pending…
mootools
// async test
var m1 = $$('.section);
pending…
mootools inside
// async test
var m2 = $$('.section .age2');
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