Run details:
Mozilla/5.0 (Linux; Android 7.0; Infinix X559C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36
Chrome Mobile 91
Android 7.0
Mobile
3 years ago
Test name Executions per second
for 4621.8 Ops/sec
for each 230758.7 Ops/sec
forEach 237839.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • for each

  • forEach