Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Windows
Desktop
one year ago
Test name Executions per second
for 22525856.0 Ops/sec
foreach 16375335.0 Ops/sec
some 16244129.0 Ops/sec
every 16586365.0 Ops/sec
for..of 1981276.2 Ops/sec
map 9093855.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map