Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36
Chrome 52
Windows 7
Desktop
3 years ago
Test name Executions per second
for 25223.0 Ops/sec
foreach 49706.5 Ops/sec
for..of 41258.1 Ops/sec
for..of over entries 18709.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries