Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.41 Safari/537.36 Edg/88.0.705.22
Chrome 88
Mac OS X 10.15.6
Desktop
3 years ago
Test name Executions per second
subarray direct 8778172.0 Ops/sec
slice direct 7233333.5 Ops/sec
subarray copy 2848279.5 Ops/sec
slice copy 2740817.5 Ops/sec
subarray set 3138108.0 Ops/sec
slice set 2792604.2 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set