Run details:
Mozilla/5.0 (Linux; Android 10; motorola one fusion+) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
foreach 53667.8 Ops/sec
for 2554.8 Ops/sec
map 2664.2 Ops/sec
for of 1374.9 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • for of