Run details:
Mozilla/5.0 (Linux; Android 10; Mi A2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Mobile Safari/537.36
Chrome Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
for 766.0 Ops/sec
foreach 48809.3 Ops/sec
some 48884.9 Ops/sec
for..of 1297.2 Ops/sec
while 765.6 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of

  • while