Run details:
Mozilla/5.0 (Linux; Android 7.1.1; Z839) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android 7.1.1
Mobile
one year ago
Test name Executions per second
for 4267.7 Ops/sec
foreach 252015.5 Ops/sec
for in 202702.1 Ops/sec
for..of 6911.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of


;