Run details:
Mozilla/5.0 (Android 13; Mobile; rv:129.0) Gecko/129.0 Firefox/129.0
Firefox Mobile 129
Android
Mobile
3 months ago
Test name Executions per second
for 2746.3 Ops/sec
foreach 596.3 Ops/sec
for in 57.5 Ops/sec
for..of 911.4 Ops/sec
for2 2786.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of

  • for2