Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
use...
30.2M/s
Using Object.assign
7.2M/s
Using the spread operator
1.1M/s

Fastest: use... (28.6x faster)

View exact numbers
  • use...: 30,207,132 ops/sec
  • Using Object.assign: 7,152,542 ops/sec
  • Using the spread operator: 1,055,777 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
    Using the spread operator
    Using Object.assign
    use...

    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/134.0.0.0 Safari/537.36
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
use...
33.3M/s
Using Object.assign
24.6M/s
Using the spread operator
5.6M/s
View exact numbers
Test name Executions per second
use... 33,304,256 Ops/sec
Using Object.assign 24,552,956 Ops/sec
Using the spread operator 5,550,866 Ops/sec