Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Chrome 94
Windows 7
Desktop
3 years ago
Test name Executions per second
for 27153.1 Ops/sec
foreach 1734440.5 Ops/sec
some 1789316.1 Ops/sec
for..of 46378.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;