Run details:
Mozilla/5.0 (Linux; Android 11; moto g(8) power) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
foreach 3.1 Ops/sec
for 1.7 Ops/sec
map 2.7 Ops/sec
while 1.7 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while