Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Firefox 61
Windows
Desktop
6 years ago
Test name Executions per second
for..in 144146.2 Ops/sec
foreach 10652430.0 Ops/sec
some 116224896.0 Ops/sec
for 1945220.2 Ops/sec
for with predefined size 3490955.5 Ops/sec
while 17332558.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;