Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0
Firefox 69
Windows
Desktop
5 years ago
Test name Executions per second
for..in 100807.6 Ops/sec
foreach 7752217.5 Ops/sec
some 76888792.0 Ops/sec
for 1297321.9 Ops/sec
for with predefined size 2034694.0 Ops/sec
while 12516205.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;