Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Chrome 97
Linux
Desktop
2 years ago
Test name Executions per second
for..in 73569.4 Ops/sec
foreach 6606137.5 Ops/sec
some 5201618.0 Ops/sec
for 56008.9 Ops/sec
for with predefined size 73827.2 Ops/sec
while 1591911.2 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while


;