Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.70
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
subarray direct 11282430.0 Ops/sec
slice direct 9443087.0 Ops/sec
subarray copy 3822750.2 Ops/sec
slice copy 3571599.8 Ops/sec
subarray set 4090551.2 Ops/sec
slice set 3887065.5 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set