Dojo vs. jQuery

JavaScript performance comparison

Revision 44 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/1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.9/dojo/dojo.xd.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
var d1 = dojo.query(".section");
pending…
Dojo Inside
var d2 = dojo.query(".section .age2");
pending…
jQuery
var j1 = jQuery('.section');
pending…
jQuery Inside
var j2 = jQuery('.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