Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
foreach 823350.6 Ops/sec
for 161813.2 Ops/sec
for 2 384019.8 Ops/sec
for..of 16140.3 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • for 2

  • for..of


;