jQuery vs dojo vs mootools - Dom

JavaScript performance comparison

Revision 9 of this test case created by Rudie Dirkx

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<script src="https://github.com/mootools/slick/raw/master/Source/Slick.Parser.js"></script>
<script src="https://github.com/mootools/slick/raw/master/Source/Slick.Finder.js"></script>

<script src="//ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js"></script>

<div class="content">
<p id="data"><strong>test</strong></p>
</div>

Preparation code output

test

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
dojo.query(".content");
pending…
jQuery
jQuery('.content');
pending…
Slick
Slick.search(document, '.content');
pending…
Dojo - inside
dojo.query(".content p");
pending…
jQuery - inside
jQuery('.content p');
pending…
Slick - inside
Slick.search(document, '.content p');
pending…
Dojo - id/inside
dojo.query("p#data strong");
pending…
jQuery - id/inside
jQuery("p#data strong");
pending…
Slick - id/inside
Slick.search(document, 'p#data strong');
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