flatMap() vs filter().map()

flatMap vs filter map
3 years ago
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
Test name Executions per second
filter().map() 480.3 Ops/sec
flatMap() 512.2 Ops/sec
Script Preparation code:
Tests:
  • filter().map()

  • flatMap()

Open this result on MeasureThat.net