Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Firefox 63
Windows
Desktop
6 years ago
Test name Executions per second
for..in 129242.2 Ops/sec
foreach 8491967.0 Ops/sec
some 83598912.0 Ops/sec
for 1228567.4 Ops/sec
for with predefined size 2162500.8 Ops/sec
while 15340690.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;