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
const data = new Uint8ClampedArray(800 * 600 * 4);
function anyNonWhite() {
for (let t = 0; t < data.length; t += 4) {
let a = data[t],
n = data[t + 1],
r = data[t + 2];
if (255 !== a || 255 !== n || 255 !== r) return !0
}
return !1
}Ready to run.
| Test | Ops/sec | |
|---|---|---|
| some | | ready |
| 121212 | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.