Run details:
Mozilla/5.0 (Linux; Android 4.4.4; SGP511) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/58.4.2878.56737
Opera 58
Android 4.4.4
Desktop
2 years ago
Test name Executions per second
foreach 1.7 Ops/sec
for 1.1 Ops/sec
map 1.6 Ops/sec
while 1.1 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while