Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Chrome 115
Windows
Desktop
11 months ago
Test name Executions per second
for 55673.1 Ops/sec
foreach 3152520.2 Ops/sec
some 3153999.2 Ops/sec
for..of 96789.7 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;