Script Preparation code:
x
 
a=[];
for(i=0;i<1000;i++) a.push(Number(i)/1000);
var filtering=x=>(x*114514)%1>0.5;
var mapping=x=>x+0.1919;
var reducing=(acc,x)=>{
  if((x*114514)%1>0.5) acc.push(x+0.1919);
  return acc;
}
Tests:
  • map-filter

     
    a.filter(filtering).map(mapping);
  • reduce

     
    a.reduce(reducing,[]);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    map-filter
    reduce

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.27 Safari/537.36
Chrome 96 on Linux
View result in a separate tab
Test name Executions per second
map-filter 39927.4 Ops/sec
reduce 59824.3 Ops/sec