Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Chrome 84
Fedora
Desktop
4 years ago
Test name Executions per second
subarray direct 7485914.0 Ops/sec
slice direct 5613140.0 Ops/sec
subarray copy 2148358.5 Ops/sec
slice copy 1977842.9 Ops/sec
subarray set 2308919.5 Ops/sec
slice set 2138422.2 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set