Run details:
Mozilla/5.0 (iPad; CPU OS 14_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.53 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 96
iOS 14.8
Tablet
3 years ago
Test name Executions per second
forloop 19398.3 Ops/sec
forEach 38262.0 Ops/sec
for...of 492745.5 Ops/sec
Script Preparation code:
Tests:
  • forloop

  • forEach

  • for...of