Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36
Chrome 60
Mac OS X 10.12.4
Other
7 years ago
Test name Executions per second
for 59806.7 Ops/sec
foreach 1527502.2 Ops/sec
some 1559517.5 Ops/sec
for..of 68447.9 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;