Run details:
Mozilla/5.0 (Linux; Android 12; motorola edge 30 pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.79 Mobile Safari/537.36
Edge 0.0
Android
Mobile
2 years ago
Test name Executions per second
foreach 110201.5 Ops/sec
for 8413.8 Ops/sec
map 14022.6 Ops/sec
for of 8522.6 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • for of