Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36 EdgA/126.0.0.0
Chrome Mobile 126
Android
Mobile
4 months ago
Test name Executions per second
for 40682.7 Ops/sec
foreach 2314313.0 Ops/sec
for in 2016073.6 Ops/sec
for..of 5182500.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of