Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.90 Safari/537.36
Chrome 75
Mac OS X 10.14.4
Desktop
5 years ago
Test name Executions per second
subarray direct 7969430.5 Ops/sec
slice direct 7134493.5 Ops/sec
subarray copy 2972718.8 Ops/sec
slice copy 2817562.8 Ops/sec
subarray set 3173597.0 Ops/sec
slice set 2979972.2 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set