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
var arr = []
for (var i = 0; i <= 10000; i++) {
arr.push({
id: i,
name: 'Potato' + i,
})
}
Ready to run.
Test | Ops/sec | |
---|---|---|
index 0%: map + indexOf |
| ready |
index 0%: findIndex |
| ready |
index 25%: map + indexOf |
| ready |
index 25%: findIndex |
| ready |
index 50%: map + indexOf |
| ready |
index 50%: findIndex |
| ready |
index 75%: map + indexOf |
| ready |
index 75%: findIndex |
| ready |
index 100%: map + indexOf |
| ready |
index 100%: findIndex |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.