Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Linux
Desktop
4 months ago
Test name Executions per second
for 3524939.5 Ops/sec
foreach 1117439.2 Ops/sec
for..of 1123935.6 Ops/sec
for..of over entries 533927.5 Ops/sec
for..in 327342.7 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries

  • for..in