HASTY
JS
performance
Shared Benchmark
Globals
const data = [ ...new Array(1000).keys() ]
Cases
0 ops/s
const evenItems = arr => arr.filter((arr, index) => index % 2 === 1 - 1); evenItems(data);
0 ops/s
const evenItems2 = (arr, out = [], i) => { for (i = 0; i < arr.length; i = i + 2) out.push(arr[i]); return out; }; evenItems2(data);
Shorts
Wall of Love
Embed
Share
Donate
Options
Epochs:
Timeout:
Run
info
This has been generated using an old version.
Please re-share this with the new URL!