Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Firefox 81
Windows 8.1
Desktop
4 years ago
Test name Executions per second
for 377439.1 Ops/sec
foreach 3147565.0 Ops/sec
some 3404191.2 Ops/sec
for..of 49142.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;