jQuery vs dojo vs mootools vs jQuery 1.7.2

JavaScript performance comparison

Revision 74 of this test case created by

Preparation code

<script src="https://code.jquery.com/jquery-1.7.2.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script><script src="https://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.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
var d1 = dojo.query(".content");
pending…
jQuery
var j1 = jQuery('.content');
pending…
Mootols
var m1 = $$('.content');
pending…
jQuery - inside
var j2 = jQuery('.content p');
pending…
Mootools - inside
var m2 = $$('.content p');
pending…
Dojo - inside
var d2 = dojo.query(".content p");
pending…
prototype
var p1 = $$(".content");
pending…
prototype inside
var p2 = $$(".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