Run details:
Mozilla/5.0 (Linux; Android 12; SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
Array.from 66820.7 Ops/sec
Array.slice 94031.7 Ops/sec
Array.push 293305.6 Ops/sec
Array[index] 268475.1 Ops/sec
Array spread 77707.0 Ops/sec
Tests:
  • Array.from

  • Array.slice

  • Array.push

  • Array[index]

  • Array spread