Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129
Windows
Desktop
one month ago
Test name Executions per second
for 10249350.0 Ops/sec
foreach 4210701.5 Ops/sec
for in 37618484.0 Ops/sec
for..of 703975.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of