Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0
Firefox 97
Linux
Desktop
2 years ago
Test name Executions per second
for 3556628.2 Ops/sec
foreach 3143127.0 Ops/sec
for..of 997746.6 Ops/sec
for..of over entries 241507.7 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries