Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Mac OS X 10.15
Desktop
8 months ago
Test name Executions per second
for 12746691.0 Ops/sec
foreach 6656175.0 Ops/sec
for in 68131536.0 Ops/sec
for..of 1033211.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of