Run details:
Mozilla/5.0 (Linux; Android 7.0; Redmi Note 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73
Android 7.0
Mobile
5 years ago
Test name Executions per second
for..in 14869.4 Ops/sec
foreach 1119177.9 Ops/sec
some 945615.4 Ops/sec
for 11795.6 Ops/sec
for with predefined size 23176.9 Ops/sec
while 332120.5 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while