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="asdf">fhalehlfkwhfa
wfwe
fwae
fe
fasd
f
sdf
sdf
s
fs
f
sdf
as
f
fas<b>dsafsfds</b>
</div>
var asdf = document.getElementById('asdf');
var empt = "";
var cssNone = "none";
let lasdf = document.getElementById('asdf');
let lempt = "";
let lcssNone = "none";
const casdf = document.getElementById('asdf');
const cempt = "";
const ccssNone = "none";
window.wasdf = document.getElementById('asdf');
window.wempt = "";
window.cssNone = "none";
document.getElementById('asdf').innerHTML =`fhalehlfkwhfa
wfwe
fwae
fe
fasd
f
sdf
sdf
s
fs
f
sdf
as
f
fas<b>dsafsfds</b>`
Ready to run.
Test | Ops/sec | |
---|---|---|
empty element |
| ready |
display:none |
| ready |
empty element target by reference |
| ready |
display:none target by ref |
| ready |
empty with vars |
| ready |
display:none with vars |
| ready |
window display:none |
| ready |
window empty |
| ready |
window empty2 |
| ready |
let |
| ready |
const |
| ready |
textContent |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.