Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
Push
91.2M/s
spread operator
71.1M/s
Array.prototype.concat
18.0M/s
Array.prototype.push.apply
14.6M/s

Fastest: Push (6.3x faster)

View exact numbers
  • Push: 91,199,392 ops/sec
  • spread operator: 71,128,824 ops/sec
  • Array.prototype.concat: 17,973,734 ops/sec
  • Array.prototype.push.apply: 14,564,434 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
    Array.prototype.push.apply

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Linux
View result in a separate tab
Push
36.2M/s
spread operator
35.0M/s
Array.prototype.push.apply
26.8M/s
Array.prototype.concat
10.7M/s
View exact numbers
Test name Executions per second
Push 36,156,740 Ops/sec
spread operator 35,024,260 Ops/sec
Array.prototype.push.apply 26,818,246 Ops/sec
Array.prototype.concat 10,726,975 Ops/sec