flatMap() vs filter().map()

flatMap vs filter map
2 years ago
User agent: Mozilla/5.0 (Android 12; Mobile; rv:88.0) Gecko/88.0 Firefox/88.0
Test name Executions per second
filter().map() 210.6 Ops/sec
flatMap() 222.4 Ops/sec
Script Preparation code:
Tests:
  • filter().map()

  • flatMap()

Open this result on MeasureThat.net