Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
Array.prototype.slice
104.6M/s
Array.prototype.concat
70.6M/s

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

View exact numbers
  • Array.prototype.slice: 104,606,432 ops/sec
  • Array.prototype.concat: 70,593,360 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
    Array.prototype.concat

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Windows
View result in a separate tab
Array.prototype.slice
108.1M/s
Array.prototype.concat
79.2M/s
View exact numbers
Test name Executions per second
Array.prototype.slice 108,074,640 Ops/sec
Array.prototype.concat 79,243,296 Ops/sec