Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0
Firefox 127
Mac OS X 10.15
Desktop
5 months ago
Test name Executions per second
for 26763378.0 Ops/sec
foreach 13784688.0 Ops/sec
for in 105852040.0 Ops/sec
for..of 2180732.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of