Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0
Firefox 101
Windows 8.1
Desktop
one year ago
Test name Executions per second
for 2916903.2 Ops/sec
foreach 1979198.2 Ops/sec
for in 20419008.0 Ops/sec
for..of 194960.2 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of


;