Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/110.0.5481.83 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 110
iOS 16.3
Mobile
one year ago
Test name Executions per second
foreach 29.2 Ops/sec
for 14.7 Ops/sec
map 26.4 Ops/sec
while 14.1 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while