Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
map 69870416.0 Ops/sec
array.from 8746989.0 Ops/sec
for loop 34451600.0 Ops/sec
foreach 35941948.0 Ops/sec
slice 102479656.0 Ops/sec
Tests:
  • map

  • array.from

  • for loop

  • foreach

  • slice