Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Ubuntu
Desktop
one year ago
Test name Executions per second
Array.map().filter(Boolean) 53035.4 Ops/sec
Array.flatMap() 87723.0 Ops/sec
Array.reduce() 14632.0 Ops/sec
Script Preparation code:
Tests:
  • Array.map().filter(Boolean)

  • Array.flatMap()

  • Array.reduce()


;