Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Firefox 90
Linux
Desktop
3 years ago
Test name Executions per second
foreach 113.1 Ops/sec
for 385.7 Ops/sec
map 40.5 Ops/sec
while 388.9 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while