Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
Chrome 86
Linux
Desktop
3 years ago
Test name Executions per second
subarray direct 5432764.5 Ops/sec
slice direct 4163284.5 Ops/sec
subarray copy 1857309.2 Ops/sec
slice copy 1685215.0 Ops/sec
subarray set 1915761.4 Ops/sec
slice set 1746251.6 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set