jQuery vs mootools vs Prototype (v3)

Revision 3 of this benchmark created by Duncan Cheuk Kan Ma on


Description

A speed analysis for selecting the selectors

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/mootools/1.3/mootools-yui-compressed.js"></script>
<div class="test">
<h2></h2>
</div>

<script>
  jQuery.noConflict();
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery
var test1 = jQuery('.test');
ready
jQuery - inside
var test2 = jQuery('.test h2');
ready
Mootools
var test3 = $$('.test');
ready
Mootools - inside
var test4 = $$('.test h2');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Duncan Cheuk Kan Ma on
  • Revision 2: published on
  • Revision 3: published by Duncan Cheuk Kan Ma on