Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0
Firefox 97
Windows
Desktop
2 years ago
Test name Executions per second
for 13067008.0 Ops/sec
foreach 6815910.0 Ops/sec
some 8931306.0 Ops/sec
every 8865512.0 Ops/sec
for..of 827232.2 Ops/sec
map 4445486.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map