Run details:
Mozilla/5.0 (Linux; Android 11; HD1910) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
foreach 5.0 Ops/sec
for 3.1 Ops/sec
map 4.8 Ops/sec
while 3.1 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while