Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Windows
Desktop
2 years ago
Test name Executions per second
For I 21814.3 Ops/sec
For Of 42828.0 Ops/sec
Spread 80300.6 Ops/sec
ForEach 41361.4 Ops/sec
Slice 81976.0 Ops/sec
Script Preparation code:
Tests:
  • For I

  • For Of

  • Spread

  • ForEach

  • Slice