Run details:
Mozilla/5.0 (Linux; Android 10; Mi Pad 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.181 Safari/537.36
Chrome 88
Android
Desktop
3 years ago
Test name Executions per second
foreach 4.1 Ops/sec
for 2.3 Ops/sec
map 3.9 Ops/sec
while 2.3 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while