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
2 months ago
Test name Executions per second
for 107520.2 Ops/sec
foreach 5068565.5 Ops/sec
some 5039287.5 Ops/sec
every 5004196.0 Ops/sec
for..of 172839.0 Ops/sec
map 5285911.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map