Run details:
Mozilla/5.0 (Linux; Android 9; Redmi Note 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Mobile Safari/537.36
Chrome Mobile 80
Android
Mobile
4 years ago
Test name Executions per second
`Array.slice(0, N)` 2392609.8 Ops/sec
`Array.length = N` 2250549.0 Ops/sec
`Object.assign([], arr)` with `Array.length = N` 72271.7 Ops/sec
Script Preparation code:
Tests:
  • `Array.slice(0, N)`

  • `Array.length = N`

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


;