jQuery vs Mootools

JavaScript performance comparison

Test case created by tbleckert

Info

Which one is faster.

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/mootools/1.3/mootools-yui-compressed.js">
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="container">
</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
jQuery
var $container = jQuery('#container'),
    $newElement = jQuery(document.createElement('div'));

$container.append($newElement);
pending…
Mootools
var container = document.id('container'),
    newElement = new Element('div');

newElement.inject(container);
pending…
jQuery append
var $container = jQuery('#container');

$container.append('<div />');
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