Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Chrome 85
Linux
Desktop
4 years ago
Test name Executions per second
subarray direct 7170877.0 Ops/sec
slice direct 5979791.5 Ops/sec
subarray copy 2372435.8 Ops/sec
slice copy 2290304.5 Ops/sec
subarray set 2559512.0 Ops/sec
slice set 2448187.5 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set