Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
foreach 1089732.0 Ops/sec
for 152935.1 Ops/sec
map 102294.4 Ops/sec
for of 90189.1 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • for of