Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/75.0.3770.100 Chrome/75.0.3770.100 Safari/537.36
Chromium 75
Linux
Desktop
5 years ago
Test name Executions per second
for 61097.8 Ops/sec
foreach 3044159.5 Ops/sec
some 2021237.1 Ops/sec
for..of 82644.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;