Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20120101 Firefox/33.0
Firefox 33
Windows 7
Desktop
one year ago
Test name Executions per second
for 69136.0 Ops/sec
foreach 170258.3 Ops/sec
for..of 168934.2 Ops/sec
for..of over entries 156200.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries