Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Windows
Desktop
2 years ago
Test name Executions per second
subarray direct 10471531.0 Ops/sec
slice direct 17112534.0 Ops/sec
subarray copy 5211333.5 Ops/sec
slice copy 6627828.0 Ops/sec
subarray set 7236050.0 Ops/sec
slice set 11653228.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set