adding dom elements jquery vs mootools vs dojo to body
JavaScript performance comparison
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="//ajax.googleapis.com/ajax/libs/mootools/1.4.1/mootools-yui-compressed.js">
</script>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.7.1/dojo/dojo.js">
</script>
<script>
require(["dojo/dom-construct"], function(domConstruct) {
window.domConstruct = domConstruct;
});
</script>
<div id="container"></div>
<script>
Benchmark.prototype.setup = function() {
containerNode = document.getElementById('container');
};
Benchmark.prototype.teardown = function() {
containerNode.innerHTML = '';
};
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
dojo |
|
pending… |
jquery |
|
pending… |
mootools |
|
pending… |
dojo 1.7 AMD |
|
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:
- Revision 1: published by Liad Magen
- Revision 2: published
- Revision 3: published
- Revision 4: published by pivolan
- Revision 5: published
- Revision 6: published by Miguel
- Revision 7: published
- Revision 8: published
0 comments