Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; MDDCJS; rv:11.0) like Gecko
IE 11
Windows
Other
6 years ago
Test name Executions per second
for..in 117801.7 Ops/sec
foreach 299175.9 Ops/sec
some 8190914.5 Ops/sec
for 216587.3 Ops/sec
for with predefined size 262784.2 Ops/sec
while 4650342.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;