Run details:
Mozilla/5.0 (Linux; Android 11; LM-V600) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Mobile Safari/537.36
Chrome Mobile 102
Android
Mobile
2 years ago
Test name Executions per second
for 51842.7 Ops/sec
foreach 3109615.0 Ops/sec
for in 2671480.2 Ops/sec
for..of 88378.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of