jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Comparing Dojo/dom-construt.toDom method and setting InnerHtml directly
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojo/dojo.js"></script>
<div id='box'></div>
require(['dojo/dom-construct', 'dojo/dom'], function(domconstruct, dom) {
dDomconstruct = domconstruct;
dDom = dom;
box = document.getElementById('box');
});
while (box.firstChild) {
box.removeChild(box.firstChild);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
domConstruct |
| ready |
innerHTML |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.