Tests:
  • pipe

    x
     
    const array = [Array.from(100000)];
    array.filter(i => i % 2 === 0).map(i => i++);
  • reduce with conditions

     
    const array = [Array.from(100000)];
    array.reduce((acc, t) => {
      return t % 2 === 0? acc.push[t++] : acc;
    },[]);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    pipe
    reduce with conditions

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36
Chrome 80 on Mac OS X 10.13.6
View result in a separate tab
Test name Executions per second
pipe 785427.8 Ops/sec
reduce with conditions 706123.6 Ops/sec