Run details:
Mozilla/5.0 (iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13G36 Twitter for iPhone/7.27
Mobile Safari 9
iOS 9.3.5
Tablet
6 years ago
Test name Executions per second
for..in 7343.3 Ops/sec
foreach 30282.2 Ops/sec
some 137999.8 Ops/sec
for 8899.0 Ops/sec
for with predefined size 17280.1 Ops/sec
while 326193.7 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while