Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
Chrome 70
Windows
Desktop
5 years ago
Test name Executions per second
for 34443.8 Ops/sec
foreach 2256852.8 Ops/sec
some 2255979.0 Ops/sec
for..of 59503.1 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;