Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7
Safari 11
Mac OS X 10.13.2
Other
2025 years ago
Test name Executions per second
map 2150666.5 Ops/sec
array.from 1474786.5 Ops/sec
for loop 37423848.0 Ops/sec
foreach 2422444.5 Ops/sec
slice 16913474.0 Ops/sec
Tests:
  • map

  • array.from

  • for loop

  • foreach

  • slice