Run details:
Mozilla/5.0 (Linux; Android 11; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
Chrome Mobile 95
Android
Mobile
3 years ago
Test name Executions per second
for 18677.7 Ops/sec
foreach 44807.9 Ops/sec
for..of 45314.0 Ops/sec
for..of over entries 38003.2 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries