Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36
Chrome 100
Windows 7
Desktop
2 years ago
Test name Executions per second
subarray direct 3602285.5 Ops/sec
slice direct 2504260.2 Ops/sec
subarray copy 1212753.2 Ops/sec
slice copy 990502.4 Ops/sec
subarray set 1263295.0 Ops/sec
slice set 1043023.7 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set


;