Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
Firefox 66
Linux
Desktop
5 years ago
Test name Executions per second
for..in 104170.2 Ops/sec
foreach 7775117.5 Ops/sec
some 69931704.0 Ops/sec
for 1138151.0 Ops/sec
for with predefined size 2331630.5 Ops/sec
while 15033259.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while