Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
concat using decomposition
15.7M/s
reduce + Array.prototype.concat
12.8M/s
Array.prototype.flat
7.5M/s

Fastest: concat using decomposition (2.1x faster)

View exact numbers
  • concat using decomposition: 15,703,672 ops/sec
  • reduce + Array.prototype.concat: 12,790,720 ops/sec
  • Array.prototype.flat: 7,505,332 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
    reduce + Array.prototype.concat
    Array.prototype.flat
    concat using decomposition

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
concat using decomposition
17.7M/s
reduce + Array.prototype.concat
10.8M/s
Array.prototype.flat
7.8M/s
View exact numbers
Test name Executions per second
concat using decomposition 17,665,802 Ops/sec
reduce + Array.prototype.concat 10,846,811 Ops/sec
Array.prototype.flat 7,839,980 Ops/sec