Run details:
Mozilla/5.0 (Macintosh;SmartTv Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.27 Safari/537.36
Chrome 91
Mac OS X 10.15.6
Desktop
2 years ago
Test name Executions per second
reduce with concat 7.9 Ops/sec
flatMap 327.9 Ops/sec
Script Preparation code:
Tests:
  • reduce with concat

  • flatMap