Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Redmi 5 Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36
Chrome Mobile 91
Android 8.1.0
Mobile
3 years ago
Test name Executions per second
for 7535.1 Ops/sec
foreach 326963.4 Ops/sec
some 350711.7 Ops/sec
for..of 14098.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;