Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Chrome 63
Mac OS X 10.13.1
Other
2025 years ago
Test name Executions per second
for..in 85446.1 Ops/sec
foreach 669071.9 Ops/sec
some 5096804.0 Ops/sec
for 65054.4 Ops/sec
for with predefined size 128548.2 Ops/sec
while 2184248.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;