Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36
Chrome 79
Windows
Desktop
4 years ago
Test name Executions per second
for..in 91639.9 Ops/sec
foreach 8334714.0 Ops/sec
some 6367661.5 Ops/sec
for 65126.8 Ops/sec
for with predefined size 132931.7 Ops/sec
while 2429383.2 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while