Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0
Firefox 120
Mac OS X 10.15
Desktop
5 months ago
Test name Executions per second
for 3443177.5 Ops/sec
foreach 2702950.0 Ops/sec
for..of 1170783.1 Ops/sec
for..of over entries 495300.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries