Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Firefox 60
Linux
Desktop
5 years ago
Test name Executions per second
for 1742916.4 Ops/sec
foreach 8674699.0 Ops/sec
some 8566996.0 Ops/sec
for..of 143783.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;