Run details:
Mozilla/5.0 (Windows NT 10.0; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Windows
Desktop
2 years ago
Test name Executions per second
for 2948725.8 Ops/sec
foreach 2147895.0 Ops/sec
for..of 610632.5 Ops/sec
for..of over entries 146220.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries