Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
Chrome 72
Mac OS X 10.14.0
Desktop
5 years ago
Test name Executions per second
for..in 79438.8 Ops/sec
foreach 7329311.0 Ops/sec
some 5567315.5 Ops/sec
for 59147.4 Ops/sec
for with predefined size 117733.9 Ops/sec
while 1913811.4 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;