Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Chrome 94
Linux
Desktop
3 years ago
Test name Executions per second
subarray direct 9476662.0 Ops/sec
slice direct 7024700.0 Ops/sec
subarray copy 3090160.8 Ops/sec
slice copy 2637891.2 Ops/sec
subarray set 3259687.5 Ops/sec
slice set 2697323.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set