Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Windows
Desktop
18 days ago
Test name Executions per second
for 13738457.0 Ops/sec
foreach 7713659.5 Ops/sec
some 6339842.5 Ops/sec
every 5743892.0 Ops/sec
for..of 894008.8 Ops/sec
map 4701417.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map