Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 OPR/56.0.3051.36
Opera 56
Linux
Desktop
6 years ago
Test name Executions per second
for..in 63033.8 Ops/sec
foreach 4590652.0 Ops/sec
some 4357545.0 Ops/sec
for 48437.7 Ops/sec
for with predefined size 95878.9 Ops/sec
while 1361147.5 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while