Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.2 Chrome/87.0.4280.144 Safari/537.36
Chrome 87
Linux
Desktop
3 years ago
Test name Executions per second
for 1 3194.6 Ops/sec
foreach 5053.5 Ops/sec
some 5071.0 Ops/sec
for..of 5607.9 Ops/sec
for..in 4204.1 Ops/sec
for 2 6229.1 Ops/sec
Script Preparation code:
Tests:
  • for 1

  • foreach

  • some

  • for..of

  • for..in

  • for 2


;