Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Pixel 2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.105 Mobile Safari/537.36
Chrome Mobile 72
Android 8.1.0
Mobile
5 years ago
Test name Executions per second
for 26085.1 Ops/sec
foreach 1201060.5 Ops/sec
some 519249.9 Ops/sec
for..of 35012.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;