Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/106.0.5249.92 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 106
iOS 16.0
Mobile
2 years ago
Test name Executions per second
`Array.slice(0, N)` 11814983.0 Ops/sec
`Array.length = N` 12514883.0 Ops/sec
`Object.assign([], arr)` with `Array.length = N` 795354.1 Ops/sec
Script Preparation code:
Tests:
  • `Array.slice(0, N)`

  • `Array.length = N`

  • `Object.assign([], arr)` with `Array.length = N`


;