Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Linux
Desktop
10 months ago
Test name Executions per second
for 147344.2 Ops/sec
foreach 8049405.0 Ops/sec
some 5802456.5 Ops/sec
every 5736666.0 Ops/sec
for..of 240382.6 Ops/sec
map 5778613.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map