Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36
Chrome Mobile 67
Android 8.0.0
Mobile
6 years ago
Test name Executions per second
for..in 34510.1 Ops/sec
foreach 2895655.0 Ops/sec
some 2146193.5 Ops/sec
for 30651.7 Ops/sec
for with predefined size 62708.1 Ops/sec
while 854758.2 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;