Run details:
Mozilla/5.0 (iPad; CPU OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/103.0.5060.54 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 103
iOS 16.5
Tablet
one year ago
Test name Executions per second
for 127927.0 Ops/sec
foreach 483944.1 Ops/sec
for in 5316500.0 Ops/sec
for..of 147617.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of