Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Android
Desktop
8 months ago
Test name Executions per second
for 60137.7 Ops/sec
foreach 1651053.0 Ops/sec
for in 2365324.8 Ops/sec
for..of 72691.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of