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 25842.0 Ops/sec
for 2828.3 Ops/sec
map 22256.2 Ops/sec
for-of 2785.9 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • for-of