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 = [];
const n_axis = 2000;
let i = 0;
for (x = 0; x < n_axis; x++) {
if (x % 2) {
continue;
}
for (y = 0; y < n_axis; y++) {
if (!(y % 2)) {
continue;
}
const ids = Array(((x + y) % 3) || 1)
.fill(null)
.map(() => i++);
data.push([x, y, ids]);
}
}
const coords = {};
Ready to run.
Test | Ops/sec | |
---|---|---|
nested objects operador in (only check) |
| ready |
nested objects direct access (only check) |
| ready |
combined string key |
| ready |
combined string key template literal |
| ready |
nested objects direct access |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.