Run details:
Mozilla/5.0 (Linux; Android 9; Mi A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Mobile Safari/537.36
Chrome Mobile 86
Android
Mobile
4 years ago
Test name Executions per second
for..in 13228.9 Ops/sec
foreach 911834.4 Ops/sec
some 712269.6 Ops/sec
for 9029.6 Ops/sec
for with predefined size 17911.3 Ops/sec
while 298936.4 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while