Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 OPR/41.0.2353.69
Opera 41
Windows
Other
7 years ago
Test name Executions per second
for..in 3529159.5 Ops/sec
foreach 729944.0 Ops/sec
some 729344.8 Ops/sec
for 40541.6 Ops/sec
for with predefined size 83551.0 Ops/sec
while 1630622.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;