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_128 =
Array(2 ** 14)
.fill(0)
.map((_, i) => i % 2 ** 7);
const data_4096 =
Array(2 ** 14)
.fill(0)
.map((_, i) => i % 2 ** 12);
const data_sorted =
data.slice()
.sort();
Ready to run.
Test | Ops/sec | |
---|---|---|
Map 128 |
| ready |
Set 128 |
| ready |
Map 4096 |
| ready |
Set 4096 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.