Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Firefox/60.0
Firefox 60
Mac OS X 10.12
Desktop
5 years ago
Test name Executions per second
foreach 1647414.6 Ops/sec
for 149942.5 Ops/sec
map 96404.5 Ops/sec
for-of 94335.5 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • for-of