Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129
Mac OS X 10.15
Desktop
3 months ago
Test name Executions per second
for 28394494.0 Ops/sec
foreach 14195801.0 Ops/sec
for in 158142336.0 Ops/sec
for..of 2305125.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of


;