Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82
Chrome 114
Linux
Desktop
one year ago
Test name Executions per second
map 73096512.0 Ops/sec
array.from 5631426.0 Ops/sec
for loop 44293248.0 Ops/sec
foreach 38656512.0 Ops/sec
slice 109097048.0 Ops/sec
Tests:
  • map

  • array.from

  • for loop

  • foreach

  • slice