Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36
Chrome 81
Linux
Desktop
4 years ago
Test name Executions per second
subarray direct 7762388.0 Ops/sec
slice direct 5920200.0 Ops/sec
subarray copy 2545206.2 Ops/sec
slice copy 2306082.0 Ops/sec
subarray set 2523297.8 Ops/sec
slice set 2343135.5 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set