Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
Using the spread operator
54.5M/s
Using Object.assign
28.9M/s

Fastest: Using the spread operator (1.9x faster)

View exact numbers
  • Using the spread operator: 54,464,856 ops/sec
  • Using Object.assign: 28,938,968 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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142 on Mac OS X 10.15.7
View result in a separate tab
Using the spread operator
78.1M/s
Using Object.assign
37.6M/s
View exact numbers
Test name Executions per second
Using the spread operator 78,138,048 Ops/sec
Using Object.assign 37,642,652 Ops/sec