Run details:
Mozilla/5.0 (Linux; Android 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36
Chrome Mobile 113
Android
Mobile
one year ago
Test name Executions per second
filter().map() 154.4 Ops/sec
flatMap() 49.7 Ops/sec
map().filter(Boolean) 122.0 Ops/sec
map().filter(=>) 29.1 Ops/sec
Script Preparation code:
Tests:
  • filter().map()

  • flatMap()

  • map().filter(Boolean)

  • map().filter(=>)