Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 OPR/104.0.0.0
Opera 104
Windows
Desktop
one year ago
Test name Executions per second
slice 1389414.5 Ops/sec
spread operator 1582301.5 Ops/sec
push apply into empty array 4309060.0 Ops/sec
Array.from 1177487.0 Ops/sec
Object.values 219202.7 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values