Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Windows
Desktop
2 years ago
Test name Executions per second
for 18207846.0 Ops/sec
foreach 13372034.0 Ops/sec
some 13088226.0 Ops/sec
every 13049956.0 Ops/sec
for..of 1003183.1 Ops/sec
map 6603987.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map