Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4346.0 Safari/537.36 Edg/89.0.731.0
Chrome 89
Linux
Desktop
3 years ago
Test name Executions per second
for 60429.5 Ops/sec
foreach 3107428.8 Ops/sec
some 3515125.8 Ops/sec
for..of 92173.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;