Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Chrome 89
Mac OS X 11.2.2
Desktop
3 years ago
Test name Executions per second
map 70147992.0 Ops/sec
array.from 6796304.0 Ops/sec
for loop 37519104.0 Ops/sec
foreach 38717240.0 Ops/sec
slice 119842680.0 Ops/sec
Tests:
  • map

  • array.from

  • for loop

  • foreach

  • slice

  • spread

  • filter

  • concat