jQuery 2.0 vs. Dojo Toolkit 1.10 DOM Traversal

JavaScript performance comparison

Revision 149 of this test case created by Fawaz Tahir

Preparation code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/dojo/1.10.0/dojo/dojo.js"></script>
<div class="content">
<p></p>
</div>
    

Preparation code output

<div class="content"> <p></p> </div>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Dojo Toolkit 1.10
var d1 = dojo.query(".content");
pending…
jQuery 2.0
var j1 = jQuery('.content');
pending…
jQuery 2.0 - Inside
var j2 = jQuery('.content p');
pending…
Dojo Toolkit 1.10 - Inside
var d2 = dojo.query(".content p");
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.

0 Comments