Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Mac OS X 10.15
Desktop
one month ago
Test name Executions per second
for 29733610.0 Ops/sec
foreach 14786109.0 Ops/sec
for in 145459120.0 Ops/sec
for..of 2086513.9 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of