Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0
Firefox 104
Ubuntu
Desktop
2 years ago
Test name Executions per second
for 14312740.0 Ops/sec
foreach 9398043.0 Ops/sec
some 9913834.0 Ops/sec
every 10966457.0 Ops/sec
for..of 652691.5 Ops/sec
map 4579250.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map