Run details:
Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG-SM-G900A Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36
Chrome Mobile 67
Android 6.0.1
Mobile
6 years ago
Test name Executions per second
for..in 17445.2 Ops/sec
foreach 1470912.9 Ops/sec
some 648208.1 Ops/sec
for 10310.4 Ops/sec
for with predefined size 22017.3 Ops/sec
while 189728.9 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;