Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 OPR/83.0.4254.27
Opera 83
Windows 7
Desktop
2 years ago
Test name Executions per second
for 31662.5 Ops/sec
foreach 75597.6 Ops/sec
for..of 76718.6 Ops/sec
for..of over entries 71905.3 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries


;