Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36
Chrome 79
Windows
Desktop
4 years ago
Test name Executions per second
subarray direct 9508223.0 Ops/sec
slice direct 8073789.0 Ops/sec
subarray copy 3133008.8 Ops/sec
slice copy 3066283.0 Ops/sec
subarray set 3433851.8 Ops/sec
slice set 3283039.2 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set