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
function rand32a() {
return (Math.random() * 0x100000000 | 0);
}
function rand64a() {
return {h: rand32a(), l: rand32a()};
}
function xora(x, y) {
return {l: x.l ^ y.l, h: x.h ^ y.h};
}
function rand32b() {
return (Math.random() * 0x400000 | 0);
}
function rand64b() {
return {h: rand32b(), m: rand32b(), l: rand32b()};
}
function xorb(x, y) {
return {l: x.l ^ y.l, m: x.m ^ y.m, h: x.h ^ y.h};
}
var aa = Array.from({length:1024},rand64a);
var ab = Array.from({length:1024},rand64b);
var xa = rand64a();
var xb = rand64a();
var i = 0;
Ready to run.
| Test | Ops/sec | |
|---|---|---|
| floats | | ready |
| ints | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.