Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Windows
Desktop
3 months ago
Test name Executions per second
slice 642534.8 Ops/sec
spread operator 675570.8 Ops/sec
push apply into empty array 1877254.4 Ops/sec
Array.from 545401.3 Ops/sec
Object.values 163514.5 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values


;