Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Redmi S2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36
Chrome Mobile 87
Android 8.1.0
Mobile
4 years ago
Test name Executions per second
slice 76406.1 Ops/sec
spread operator 82307.2 Ops/sec
push apply into empty array 223355.9 Ops/sec
Array.from 71484.1 Ops/sec
Object.values 14304.4 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values