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 2937541.2 Ops/sec
foreach 1949823.4 Ops/sec
for in 20072184.0 Ops/sec
for..of 193180.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of