Dojo vs. jQuery vs. ExtJS (v12)

Revision 12 of this benchmark created by Rodrigo González on


Description

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

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/ext-core/3/ext-core.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojo/dojo.js" data-dojo-config="async: true"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Dojo
require(['dojo/query'], function(query) {
   var d1 = query(".section");
});
ready
Dojo Inside
require(['dojo/query'], function(query) {
   var d2 = 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

Revisions

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