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 users = [];
let activeUserNames = [];
for (let i = 0; i < 10000; i++) {
const user = {};
const randInt = Math.round(Math.random() * 10);
user.name = String.fromCharCode(randInt + 65) + String.fromCharCode(Math.ceil(i / 2));
user.active = randInt%2 === 0;
users.push(user)
}Ready to run.
| Test | Ops/sec | |
|---|---|---|
| Reduce | | ready |
| Reduce Right | | ready |
| forEach | | ready |
| for - in | | ready |
| for - of | | ready |
| filter + map | | ready |
| map + filter | | ready |
| while | | ready |
| for loop | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.