Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Firefox 81
Windows
Desktop
4 years ago
Test name Executions per second
subarray direct 3387014.5 Ops/sec
slice direct 7911505.0 Ops/sec
subarray copy 1883158.2 Ops/sec
slice copy 2845631.5 Ops/sec
subarray set 3236232.2 Ops/sec
slice set 4615022.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set