Run details:
Mozilla/5.0 (Linux; Android 12; SM-A536E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
one year ago
Test name Executions per second
for i 29.1 Ops/sec
for..of 68.5 Ops/sec
foreach 60.2 Ops/sec
Script Preparation code:
Tests:
  • for i

  • for..of

  • foreach