Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 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.7
Mobile
4 years ago
Test name Executions per second
subarray direct 6308950.0 Ops/sec
slice direct 2905839.5 Ops/sec
subarray copy 2821759.5 Ops/sec
slice copy 1650575.1 Ops/sec
subarray set 2656171.0 Ops/sec
slice set 1598937.4 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set