Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36
Chrome 66
Windows
Other
6 years ago
Test name Executions per second
slice 256590.7 Ops/sec
spread operator 480849.5 Ops/sec
push apply into empty array 1147929.8 Ops/sec
Array.from 369462.1 Ops/sec
Object.values 124244.7 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values


;