Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36
Chrome 54
Mac OS X 10.12.1
Other
7 years ago
Test name Executions per second
for..in 4211460.0 Ops/sec
foreach 747463.1 Ops/sec
some 767791.8 Ops/sec
for 56772.0 Ops/sec
for with predefined size 105888.0 Ops/sec
while 1785713.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;