Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Chrome 55
Windows
Other
7 years ago
Test name Executions per second
for..in 88261.7 Ops/sec
foreach 549687.7 Ops/sec
some 3908838.5 Ops/sec
for 58117.7 Ops/sec
for with predefined size 119061.0 Ops/sec
while 1758683.1 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;