Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4298.0 Safari/537.36 Edg/88.0.685.3
Chrome 88
Windows
Desktop
4 years ago
Test name Executions per second
subarray direct 5924152.0 Ops/sec
slice direct 5292488.5 Ops/sec
subarray copy 1982019.5 Ops/sec
slice copy 1878567.4 Ops/sec
subarray set 2160293.0 Ops/sec
slice set 2005977.9 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set