Tests:

Historical Performance Data aggregated from 53 community runs

Desktop Results:
Chrome 42 runs
Push
39.4M/s
spread operator
32.8M/s
Array.prototype.concat
8.4M/s

Fastest: Push (4.7x faster)

View exact numbers
  • Push: 39,366,576 ops/sec
  • spread operator: 32,809,436 ops/sec
  • Array.prototype.concat: 8,448,888 ops/sec
Firefox 6 runs
Push
47.3M/s
spread operator
27.6M/s
Array.prototype.concat
22.9M/s

Fastest: Push (2.1x faster)

View exact numbers
  • Push: 47,256,924 ops/sec
  • spread operator: 27,557,266 ops/sec
  • Array.prototype.concat: 22,862,526 ops/sec
Safari 5 runs
spread operator
539.4M/s
Array.prototype.concat
41.4M/s
Push
15.5M/s

Fastest: spread operator (34.9x faster)

View exact numbers
  • spread operator: 539,369,024 ops/sec
  • Array.prototype.concat: 41,368,864 ops/sec
  • Push: 15,450,798 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.concat
    spread operator
    Push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3.1 Safari/605.1.15
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
spread operator
884.2M/s
Array.prototype.concat
58.3M/s
Push
27.2M/s
View exact numbers
Test name Executions per second
spread operator 884,163,968 Ops/sec
Array.prototype.concat 58,280,196 Ops/sec
Push 27,171,412 Ops/sec