Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
Firefox 71
Linux
Desktop
4 years ago
Test name Executions per second
for 506773.7 Ops/sec
foreach 2048715.1 Ops/sec
some 2027540.6 Ops/sec
for..of 51122.7 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;