Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36
Chrome Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
for 33485.6 Ops/sec
foreach 1718985.2 Ops/sec
some 1760680.6 Ops/sec
for..of 56135.9 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;