Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Windows
Desktop
9 months ago
Test name Executions per second
for 7618565.5 Ops/sec
foreach 6917813.5 Ops/sec
for..of 1956978.6 Ops/sec
for..of over entries 1207512.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries