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

  • Array.flatMap()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Linux; Android 12; SM-S901B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
Chrome Mobile 104 on Android
View result in a separate tab
Test name Executions per second
Array.map().filter(Boolean) 42680.0 Ops/sec
Array.flatMap() 40289.1 Ops/sec


;