Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.25 Safari/537.36
Chrome 93
Fedora
Desktop
3 years ago
Test name Executions per second
subarray direct 9888291.0 Ops/sec
slice direct 6911401.0 Ops/sec
subarray copy 3384359.8 Ops/sec
slice copy 2994063.2 Ops/sec
subarray set 3458852.5 Ops/sec
slice set 3114333.8 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set