Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Mac OS X 10.15.7
Desktop
10 months ago
Test name Executions per second
for 93200.3 Ops/sec
foreach 4189301.5 Ops/sec
some 4098507.5 Ops/sec
every 4106739.0 Ops/sec
for..of 150368.3 Ops/sec
map 4451119.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map