Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
Chrome 85
Windows 7
Desktop
4 years ago
Test name Executions per second
subarray direct 6573978.5 Ops/sec
slice direct 5893163.5 Ops/sec
subarray copy 2382360.8 Ops/sec
slice copy 2293856.5 Ops/sec
subarray set 2219525.0 Ops/sec
slice set 2116017.5 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set


;