Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Mac OS X 10.15
Desktop
10 months ago
Test name Executions per second
foreach 160802.3 Ops/sec
map 128841.6 Ops/sec
for each 332421.3 Ops/sec
for each cached 328089.8 Ops/sec
for each cached reversed 331622.9 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • map

  • for each

  • for each cached

  • for each cached reversed