reduce/concat vs flatMap v2

3 months ago
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Test name Executions per second
reduce/concat 1196939.0 Ops/sec
flatMap 562584.7 Ops/sec
Script Preparation code:
Tests:
  • reduce/concat

  • flatMap

Open this result on MeasureThat.net