Run details:
Mozilla/5.0 (Linux; Android 12; 21081111RG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Mobile Safari/537.36
Chrome Mobile 107
Android
Mobile
one year ago
Test name Executions per second
`Array.slice(0, N)` 6584152.5 Ops/sec
`Array.length = N` 5585524.5 Ops/sec
`Object.assign([], arr)` with `Array.length = N` 177246.6 Ops/sec
Script Preparation code:
Tests:
  • `Array.slice(0, N)`

  • `Array.length = N`

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


;