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
// creating 100 people with 100 accounts inside
const people = Array.from({length: 100}, () => ({accounts: Array.from({length: 100}, () => ({id: Math.floor(Math.random() * 1000000)}))}));
// guaranteed to not exist in all arrays, which will force us to fully iterate all of them
const accountId = -1;
// and this one exists
const accountId2 = people[50].accounts[50].id;
Ready to run.
Test | Ops/sec | |
---|---|---|
find company |
| ready |
find company (exists) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.