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
subarray direct 6412446.0 Ops/sec
slice direct 11839336.0 Ops/sec
subarray copy 3898681.8 Ops/sec
slice copy 5212901.0 Ops/sec
subarray set 4883375.5 Ops/sec
slice set 7911378.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set