Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/86.0.4240.93 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 86
iOS 14.0
Mobile
4 years ago
Test name Executions per second
for 123436.7 Ops/sec
foreach 420531.2 Ops/sec
some 420369.6 Ops/sec
for..of 129443.7 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;