Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.41
Chrome 110
Linux
Desktop
one year ago
Test name Executions per second
for 47911.9 Ops/sec
foreach 2494733.2 Ops/sec
some 3272031.5 Ops/sec
for..of 83930.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;