Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
foreach 251.6 Ops/sec
for 1250.7 Ops/sec
map 142.5 Ops/sec
while 1254.7 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • while