Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Chrome 84
Mac OS X 10.15.4
Desktop
4 years ago
Test name Executions per second
Map and Math.min 3553170.2 Ops/sec
Reduce without initial value 5112774.0 Ops/sec
Reduce with initial value 3686865.5 Ops/sec
Reduce without initial value 2 1440307.1 Ops/sec
Script Preparation code:
Tests:
  • Map and Math.min

  • Reduce without initial value

  • Reduce with initial value

  • Reduce without initial value 2