Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
Firefox 62
Ubuntu
Desktop
6 years ago
Test name Executions per second
for..in 100809.9 Ops/sec
foreach 6810761.0 Ops/sec
some 82471936.0 Ops/sec
for 1168322.9 Ops/sec
for with predefined size 1990680.9 Ops/sec
while 11716444.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while