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
<select id="box" style="display:none;">
</select>
var box = document.getElementById("box");
var s = [];
for (var i = 1; i <= 5000; ++i) {
s += "<option>Option " + i + "</option>\n";
}
box.innerHTML = s;
Ready to run.
Test | Ops/sec | |
---|---|---|
box.innerHTML = "" |
| ready |
box.options.length = 0 |
| ready |
box.removeChild (first) |
| ready |
box.removeChild (last) |
| ready |
optimized |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.