Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
Chrome 75
Mac OS X 10.14.2
Desktop
5 years ago
Test name Executions per second
for..in 116183.9 Ops/sec
foreach 9530307.0 Ops/sec
some 8135569.5 Ops/sec
for 91352.5 Ops/sec
for with predefined size 174864.1 Ops/sec
while 2915840.5 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;