Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0
Firefox 79
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
subarray direct 8032832.0 Ops/sec
slice direct 11865512.0 Ops/sec
subarray copy 3394366.5 Ops/sec
slice copy 4352005.5 Ops/sec
subarray set 4738382.5 Ops/sec
slice set 6373782.5 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set