Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
slice 304191.5 Ops/sec
spread operator 280531.4 Ops/sec
push apply into empty array 730735.2 Ops/sec
Array.from 226351.9 Ops/sec
Object.values 54391.9 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values


;