Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
Array.prototype.slice
51.5M/s
spread operator
37.3M/s

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

View exact numbers
  • Array.prototype.slice: 51,471,488 ops/sec
  • spread operator: 37,332,528 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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121 on Mac OS X 10.15.7
View result in a separate tab
Array.prototype.slice
44.0M/s
spread operator
34.3M/s
View exact numbers
Test name Executions per second
Array.prototype.slice 44,044,292 Ops/sec
spread operator 34,340,528 Ops/sec