Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
Chrome 85
Linux
Desktop
4 years ago
Test name Executions per second
subarray direct 7234154.0 Ops/sec
slice direct 5707669.0 Ops/sec
subarray copy 2408477.5 Ops/sec
slice copy 2253584.8 Ops/sec
subarray set 2447567.2 Ops/sec
slice set 2313877.2 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set