Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Array.prototype.slice
105.5M/s
spread operator
78.4M/s
map
72.5M/s

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

View exact numbers
  • Array.prototype.slice: 105,520,792 ops/sec
  • spread operator: 78,446,784 ops/sec
  • map: 72,483,688 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
    map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115 on Windows 8.1
View result in a separate tab
Array.prototype.slice
5.6M/s
map
5.2M/s
spread operator
4.0M/s
View exact numbers
Test name Executions per second
Array.prototype.slice 5,589,897 Ops/sec
map 5,190,335 Ops/sec
spread operator 4,028,581 Ops/sec