Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
Chrome 96
Windows 7
Desktop
3 years ago
Test name Executions per second
Array.from 144437.3 Ops/sec
Array.slice 160410.5 Ops/sec
Array.push 694546.1 Ops/sec
Array[index] 597604.4 Ops/sec
Array spread 163080.2 Ops/sec
Tests:
  • Array.from

  • Array.slice

  • Array.push

  • Array[index]

  • Array spread