Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0
Firefox 79
Windows
Desktop
4 years ago
Test name Executions per second
foreach 1025002.2 Ops/sec
for 124312.1 Ops/sec
map 59742.0 Ops/sec
for of 78146.3 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • for of