Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/85.0.4183.92 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 85
iOS 13.6
Mobile
4 years ago
Test name Executions per second
subarray direct 2586365.5 Ops/sec
slice direct 1157305.1 Ops/sec
subarray copy 1141395.4 Ops/sec
slice copy 723066.2 Ops/sec
subarray set 1131865.8 Ops/sec
slice set 719961.8 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set