Script Preparation code:
Tests:
  • filter().map()

  • flatMap()

  • mapFilter(Boolean)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    filter().map()
    flatMap()
    mapFilter(Boolean)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Linux; Android 11; HD1903) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
Chrome Mobile 95 on Android
View result in a separate tab
Test name Executions per second
filter().map() 94.1 Ops/sec
flatMap() 36.8 Ops/sec
mapFilter(Boolean) 61.4 Ops/sec