Run details:
Mozilla/5.0 (Linux; Android 8.0.0; Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36
Chrome Mobile 67
Android 8.0.0
Mobile
6 years ago
Test name Executions per second
for..in 38276.9 Ops/sec
foreach 3190124.0 Ops/sec
some 2226459.2 Ops/sec
for 26686.7 Ops/sec
for with predefined size 48285.2 Ops/sec
while 574789.9 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;