Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/76.0.3809.123 Mobile/15E148 Safari/605.1
Chrome Mobile iOS 76
iOS 12.4
Mobile
5 years ago
Test name Executions per second
foreach 10122.1 Ops/sec
for 4684.3 Ops/sec
map 6808.0 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map


;