Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
one month ago
Test name Executions per second
for 42232.3 Ops/sec
foreach 3262372.5 Ops/sec
some 3261316.2 Ops/sec
every 3236632.2 Ops/sec
for..of 73422.7 Ops/sec
map 2747588.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map