Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
subarray direct 4253234.5 Ops/sec
slice direct 7031668.5 Ops/sec
subarray copy 1948207.5 Ops/sec
slice copy 2658912.2 Ops/sec
subarray set 2835272.0 Ops/sec
slice set 4564968.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set