Dojo vs. jQuery vs. ExtJS

JavaScript performance comparison

Revision 76 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/ext-core/3/ext-core.js">
</script>
<script src="//zeptojs.com/zepto.min.js">
</script>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.0/dojo/dojo.js" data-dojo-config="async: false">
</script>
<script>
  var dojo;
  var domConstruct;
  require(["dojo/query", "dojo/dom-construct", "dojo/domReady!"], function(query, domConst) {
    domConstruct = domConst;
    dojo = query;
  });
</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 = dojo(".section");
pending…
Dojo Inside
var d2 = dojo(".section .age2");
pending…
jQuery
var j1 = $('.section');
pending…
jQuery Inside
var j2 = $('.section .age2');
pending…
ExtJS
var e1 = Ext.get('.section');
pending…
ExtJS Inside
var e2 = Ext.get('.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