Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 OPR/97.0.0.0
Opera 97
Windows
Desktop
one year ago
Test name Executions per second
for 88868.6 Ops/sec
foreach 5234271.0 Ops/sec
some 5192787.0 Ops/sec
every 5142774.0 Ops/sec
for..of 156006.8 Ops/sec
map 4486998.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map