jQuery vs dojo vs mootools - Dom

JavaScript performance comparison

Revision 65 of this test case created by Russell

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/dojo/1.7/dojo/dojo.js">
</script>
<script src="//ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js">
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js">
</script>
<script src="//srsly.gd/js/rbTest.js">
</script>
<script>
  require(['dojo/query!css3'], function(query) {
    dQuery = query;
  });

  mQuery = $$;
</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
Dojo
var d1 = dQuery(".content");
pending…
jQuery
var j1 = jQuery('.content');
pending…
Mootols
var m1 = mQuery('.content');
pending…
jQuery inside find
var j3 = jQuery('.content').find('p');
pending…
rb
var r1 = rb.elements.sClass('content', true);
pending…
rb find inside
var r2 = rb.elements.sClass('content', true).pop().sTag('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. Here’s a list of current revisions for this page:

0 comments

Add a comment