Tests:

Historical Performance Data aggregated from 11 community runs

Desktop Results:
Chrome 11 runs
Using the spread operator
14.0M/s
Using Object.assign
790K/s

Fastest: Using the spread operator (17.8x faster)

View exact numbers
  • Using the spread operator: 14,034,405 ops/sec
  • Using Object.assign: 789,629 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: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128 on Mac OS X 10.15.7
View result in a separate tab
Using the spread operator
18.4M/s
Using Object.assign
1.2M/s
View exact numbers
Test name Executions per second
Using the spread operator 18,359,720 Ops/sec
Using Object.assign 1,176,159 Ops/sec