Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Windows 7
Desktop
one year ago
Test name Executions per second
Array.from 124182.4 Ops/sec
Array.slice 146293.5 Ops/sec
Array.push 609689.9 Ops/sec
Array[index] 527432.7 Ops/sec
Array spread 144057.3 Ops/sec
Tests:
  • Array.from

  • Array.slice

  • Array.push

  • Array[index]

  • Array spread