Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/69.0.3497.81 Chrome/69.0.3497.81 Safari/537.36
Chromium 69
Ubuntu
Desktop
6 years ago
Test name Executions per second
for..in 61278.4 Ops/sec
foreach 4619982.0 Ops/sec
some 4403547.5 Ops/sec
for 47114.2 Ops/sec
for with predefined size 91656.9 Ops/sec
while 1707031.0 Ops/sec
Script Preparation code:
Tests:
  • for..in

  • foreach

  • some

  • for

  • for with predefined size

  • while