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
<p><div id='xy'>sdf<span>sdf</span></div><div>sdf<span>sdf</span></div><div>sdf<span>sdf</span></div><div>sdf<span>sdf</span></div><div>sdf<span>sdf</span></div><div>sdf<span>sdf</span></div><div>sdf<span>sdf</span></div></p>
<script>
var n = Array(function(e) {
var N = e.nextSibling;
if (N != null) {
if (N.parentNode == e) {
for (var c = e.childNodes, l = c.length + 0; l != 0; l--) {
if (c[l] == e) {
l++;
return c[l] == null ? false : c[l];
}
}
return false;
}
else return N;
}
}, function(e) {
var N = e.nextSibling;
if (N != null) {
if (N.parentNode == e) {
var a = e;
while ((N = a.nextSibling) != null) {
if (N.parentNode == a) a = N;
else return N;
}
return false;
}
else return N;
}
});
var t = document.getElementById('xy');
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
nextNode 1 |
| ready |
nextNode 2 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.