Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36
Chrome 81
Linux
Desktop
4 years ago
Test name Executions per second
subarray direct 7888560.0 Ops/sec
slice direct 6145434.5 Ops/sec
subarray copy 2764865.8 Ops/sec
slice copy 2502930.5 Ops/sec
subarray set 2781700.8 Ops/sec
slice set 2555558.8 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set