Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Ubuntu
Desktop
4 years ago
Test name Executions per second
subarray direct 6956694.5 Ops/sec
slice direct 13124223.0 Ops/sec
subarray copy 3078931.2 Ops/sec
slice copy 4476032.0 Ops/sec
subarray set 4549083.5 Ops/sec
slice set 7781326.5 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set