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 2932956.8 Ops/sec
foreach 1924843.6 Ops/sec
for in 20377784.0 Ops/sec
for..of 183670.1 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of