Run details:
Mozilla/5.0 (Linux; Android 7.1.1; Z839) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android 7.1.1
Mobile
2 years ago
Test name Executions per second
for 4239.3 Ops/sec
foreach 251002.5 Ops/sec
for in 201643.3 Ops/sec
for..of 6925.2 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of