Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Chrome 72
Linux
Desktop
5 years ago
Test name Executions per second
subarray direct 5002953.0 Ops/sec
slice direct 5068519.0 Ops/sec
subarray copy 1805844.1 Ops/sec
slice copy 1809096.4 Ops/sec
subarray set 1934773.9 Ops/sec
slice set 2013777.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set