Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/123.0.6312.52 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 123
iOS 17.4
Mobile
7 months ago
Test name Executions per second
for 132318.4 Ops/sec
foreach 571174.8 Ops/sec
for in 5851167.5 Ops/sec
for..of 135747.6 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of


;