Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Chrome 87
Linux
Desktop
3 years ago
Test name Executions per second
for..in 117951.2 Ops/sec
foreach 10344720.0 Ops/sec
some 8160811.0 Ops/sec
for 83390.2 Ops/sec
for with predefined size 177786.9 Ops/sec
while 2782815.2 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;