ready...
minArg:
maxArg:
maxTime (sec):
repeat:
compare!
>>
n => new Array(n).fill(1);
<<
async
list => { let sum = 0; for (let n of list) sum += n; return sum; }
<<
async
list => { let sum = 0; for (let i = 0; i
>>
async
(list, cb) => cb(list.reduce((acc, val) => acc + val));
>>
info => { const {n, input, output} = info; if (output !== n) return 'expected: ' + n + ', got: ' + output; }
Powered by
parametric-benchmark
.