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
The objective is to find the largest element of a 2d array where you want the largest element of either the 1st or 2nd index of the sub array.
var data = [];
while (data.length < 10000) {
data.push([Math.random() * 100, Math.random * 300]);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Reduce |
| ready |
Map |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.