Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98
Windows
Desktop
2 years ago
Test name Executions per second
subarray direct 7892351.0 Ops/sec
slice direct 13594267.0 Ops/sec
subarray copy 3721933.2 Ops/sec
slice copy 5659667.0 Ops/sec
subarray set 6036846.5 Ops/sec
slice set 9548358.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set