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 entries = Array.from({length: 5000}, () => [String(Math.random()), Math.random()]);
const object = Object.fromEntries(entries);
const map = new Map(Object.entries(object));
Ready to run.
Test | Ops/sec | |
---|---|---|
for entries |
| ready |
for keys (faster in chrome, same in FF) |
| ready |
Map Iteration entries (fastest in all browsers) |
| ready |
Object creation fromEntries |
| ready |
Map creation fromEntries |
| ready |
Object accessor |
| ready |
map accessor |
| ready |
object setter |
| ready |
map setter |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.