Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11.2; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Mac OS X 11.2
Desktop
3 years ago
Test name Executions per second
Array.from 527934.7 Ops/sec
Array.slice 2162603.5 Ops/sec
Array.push 1249055.0 Ops/sec
Array[index] 1337168.8 Ops/sec
Tests:
  • Array.from

  • Array.slice

  • Array.push

  • Array[index]

  • Array spread