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
bench new .values()
iterator function
function makeArr(n) {
return Array.from({length: n}, () => Math.floor(Math.random() * 100))
};
const arr10 = makeArr(10);
const arr100 = makeArr(100);
const arr1000 = makeArr(1000);
const arr10000 = makeArr(10000);
const arr100000 = makeArr(100000);
Ready to run.
Test | Ops/sec | |
---|---|---|
filter-10 |
| ready |
values-10 |
| ready |
filter-100 |
| ready |
values-100 |
| ready |
filter-1000 |
| ready |
values-1000 |
| ready |
filter-10000 |
| ready |
values-10000 |
| ready |
filter-100000 |
| ready |
values-100000 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.