Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.272 Whale/2.9.117.22 Safari/537.36
Chrome 86
Mac OS X 11.0.0
Desktop
3 years ago
Test name Executions per second
subarray direct 8498079.0 Ops/sec
slice direct 7002146.0 Ops/sec
subarray copy 2723569.2 Ops/sec
slice copy 2547392.2 Ops/sec
subarray set 2905286.0 Ops/sec
slice set 2753069.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set