Run details:
Mozilla/5.0 (Linux; Android 9; TA-1012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.112 Mobile Safari/537.36
Chrome Mobile 74
Android
Mobile
5 years ago
Test name Executions per second
foreach 25902.5 Ops/sec
for 2829.7 Ops/sec
map 4857.4 Ops/sec
for of 2862.2 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • for of