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
<div id="divinputme">
123 123 123
</div>
<span id="spaninputme">
123 123 123
</span>
<script>
var a = document.getElementById('divinputme'),
b = document.getElementById('spaninputme'),
s = '1,2,3,4';
function someText() {
var i=5, b=new Array(i), c='<b>1</b><div style="display:none">23123123</div>';
for (i;i;i--) {b[i]=c;}
b.push(Math.random());
return b.join('');
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
innerText - div |
| ready |
innerText - span |
| ready |
innerHTML - div |
| ready |
innerHTML - span |
| ready |
nodeValue - div |
| ready |
nodeValue - span |
| ready |
textContent - div |
| ready |
textContent - span |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.