Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SM-G935F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36
Chrome Mobile 81
Android 8.0.0
Mobile
4 years ago
Test name Executions per second
for 18606.1 Ops/sec
foreach 1198060.1 Ops/sec
some 1203114.2 Ops/sec
for..of 32390.3 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;