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></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div><p><a></a></p></div>
<div>
<div>
<ul>
<li id="item-2"><a href="#">item 1</a></li>
<li id="item-1"><a href="#">item 2</a></li>
<li id="item-3"><a href="#">item 3</a></li>
<li id="item-3"><a href="#">item 4</a></li>
<li id="item-3"><a href="#">item 5</a></li>
</ul>
</div>
<div>
<p><b></b></p>
<p><b></b></p>
</div>
<div>
<ul>
<li id="item-3"><a href="#">item 6</a></li>
<li id="item-3"><a href="#">item 7</a></li>
<li id="item-3"><a href="#">item 8</a></li>
<li id="item-3"><a href="#">item 9</a></li>
<li id="item-3"><a href="#">item 10</a></li>
</ul>
</div>
</div>
var nl = document.getElementsByTagName('*');
Ready to run.
Test | Ops/sec | |
---|---|---|
Array.prototype.slice.call |
| ready |
Array.push |
| ready |
For loop push |
| ready |
Set length first v1 |
| ready |
Set length first v2 |
| ready |
Terse While new Array |
| ready |
Push.apply |
| ready |
Array.unshift |
| ready |
Bitwise operation |
| ready |
Array.from |
| ready |
Spread operator |
| ready |
While forward loop |
| ready |
Reverse while loop |
| ready |
Reverse for loop |
| ready |
Unshift |
| ready |
For loop assign |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.