Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
Chrome 80
Windows
Desktop
4 years ago
Test name Executions per second
subarray direct 4430546.0 Ops/sec
slice direct 4094906.5 Ops/sec
subarray copy 1484688.0 Ops/sec
slice copy 1465847.6 Ops/sec
subarray set 1653005.0 Ops/sec
slice set 1564622.8 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set


;