Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Mobile/15E148 Safari/604.1
Mobile Safari 18
iOS 18.1
Mobile
3 months ago
Test name Executions per second
Array.from 2730574.0 Ops/sec
Array.slice 3149883.5 Ops/sec
Array.push 4672757.0 Ops/sec
Array[index] 3852302.0 Ops/sec
Array spread 2666052.8 Ops/sec
Tests:
  • Array.from

  • Array.slice

  • Array.push

  • Array[index]

  • Array spread