Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36
Chrome 81
Linux
Desktop
4 years ago
Test name Executions per second
subarray direct 7672774.5 Ops/sec
slice direct 5767840.0 Ops/sec
subarray copy 2492529.8 Ops/sec
slice copy 2252844.0 Ops/sec
subarray set 2302807.2 Ops/sec
slice set 1997901.6 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set