Run details:
Mozilla/5.0 (Android 13; Mobile; rv:122.0) Gecko/122.0 Firefox/122.0
Firefox Mobile 122
Android
Mobile
10 months ago
Test name Executions per second
foreach 54208.8 Ops/sec
map 26685.7 Ops/sec
for each 79064.2 Ops/sec
for each cached 77794.3 Ops/sec
for each cached reversed 92935.9 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • map

  • for each

  • for each cached

  • for each cached reversed