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>
div1
</div>
<div>
div2
</div>
<div>
div3
</div>
<div>
div4
</div>
<div>
div5
</div>
<div>
div6
</div>
<div>
div7
</div>
<div>
div8
</div>
<div>
div9
</div>
<div>
div10
</div>
<script>
function bar(a) {};
var divs = document.getElementsByTagName('div');
var items = [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}];
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Iterate divs |
| ready |
Iterate Array |
| ready |
Iterate divs with func |
| ready |
Iterate Array with func |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.