Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Ubuntu
Desktop
4 years ago
Test name Executions per second
for 1248582.9 Ops/sec
foreach 7643114.0 Ops/sec
some 7283577.0 Ops/sec
for..of 122546.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;