Run details:
Mozilla/5.0 (iPad; CPU OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/105.0.5195.147 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 105
iOS 16.1
Tablet
2 years ago
Test name Executions per second
for 127823.3 Ops/sec
foreach 469142.3 Ops/sec
some 467907.5 Ops/sec
for..of 91237.7 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;