Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
Array.prototype.slice
74.5M/s
spread operator
64.0M/s
FromArray method
58.4M/s

Fastest: Array.prototype.slice (1.3x faster)

View exact numbers
  • Array.prototype.slice: 74,529,568 ops/sec
  • spread operator: 63,976,032 ops/sec
  • FromArray method: 58,415,792 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.prototype.slice
    spread operator
    FromArray method

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 29 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0
Chrome 150 on Windows
View result in a separate tab
Array.prototype.slice
62.7M/s
spread operator
57.6M/s
FromArray method
54.2M/s
View exact numbers
Test name Executions per second
Array.prototype.slice 62,679,904 Ops/sec
spread operator 57,643,320 Ops/sec
FromArray method 54,215,664 Ops/sec