Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/102.0.5005.67 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 102
iOS 14.6
Mobile
2 years ago
Test name Executions per second
for 114026.3 Ops/sec
foreach 545085.6 Ops/sec
some 529652.1 Ops/sec
for..of 128271.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;