Dojo vs. jQuery vs. ExtJS 4.2 vs. YUI (v81)

Revision 81 of this benchmark created on


Description

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

Preparation HTML

<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="//docs.sencha.com/extjs/4.2.1/extjs/ext-all.js"></script>
<script src="http://yui.yahooapis.com/3.12.0/build/simpleyui/simpleyui-min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Dojo
var d1 = dojo.query(".section");
ready
Dojo Inside
var d2 = dojo.query(".section .age2");
ready
jQuery
var j1 = jQuery('.section');
ready
jQuery Inside
var j2 = jQuery('.section .age2');
ready
ExtJS
var e1 = Ext.get('.section');
ready
ExtJS Inside
var e2 = Ext.get('.section .age2');
ready
YUI
var y1 = Y.one('.section');
ready
YUI Inside
var y2 = Y.one('.section .age2');
ready
mootools
var m1 = $$('.section');
ready
mootools inside
var m2 = $$('.section .age2');
ready

Revisions

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