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
3 years ago
Test name Executions per second
for..in 12826.7 Ops/sec
foreach 915417.9 Ops/sec
some 715208.4 Ops/sec
for 9084.6 Ops/sec
for with predefined size 17953.3 Ops/sec
while 294800.4 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;