Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Linux
Desktop
one year ago
Test name Executions per second
for 23955812.0 Ops/sec
foreach 16788286.0 Ops/sec
some 16702575.0 Ops/sec
for..of 1386430.9 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;