Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129
Linux
Desktop
4 months ago
Test name Executions per second
for 7888315.0 Ops/sec
foreach 1645512.4 Ops/sec
for..of 2031849.8 Ops/sec
for..of over entries 1223181.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries