Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Linux
Desktop
2 months ago
Test name Executions per second
for 16450.5 Ops/sec
foreach 854078.6 Ops/sec
for in 713426.7 Ops/sec
for..of 27160.9 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of