Dojo v1.7 vs. jQuery v1.7.4 DOM queries

JavaScript performance comparison

Revision 22 of this test case created

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.7/dojo/dojo.js"></script>
<script>
require(['dojo/query!css3'], function(query) {
  dojoQuery = query;
});
</script>
<div class="content">
<p></p>
</div>

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
jQuery v1.7.1
var j1 = jQuery('.content');
pending…
jQuery v1.7.1 - inside
var j2 = jQuery('.content p');
pending…
Dojo v1.7
var d1 = dojoQuery(".content");
pending…
Dojo v1.7 - inside
var d2 = dojoQuery(".content p");
pending…
JQuery With Find
var j3 = jQuery('.content').find("p");
pending…
Jquery With inner selector
var j4 = jQuery('p','.content');
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