Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
Windows 7
Desktop
4 years ago
Test name Executions per second
for 992763.9 Ops/sec
foreach 4196401.0 Ops/sec
some 4424255.5 Ops/sec
for..of 75869.7 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;