Tests:

Historical Performance Data aggregated from 11 community runs

Desktop Results:
Chrome 11 runs
Using the spread operator
41.4M/s
Using Object.assign
11.1M/s

Fastest: Using the spread operator (3.7x faster)

View exact numbers
  • Using the spread operator: 41,392,804 ops/sec
  • Using Object.assign: 11,129,921 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: one year ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Mobile Safari/537.36
Chrome Mobile 139 on Android
View result in a separate tab
Using the spread operator
7.8M/s
Using Object.assign
7.0M/s
View exact numbers
Test name Executions per second
Using the spread operator 7,846,090 Ops/sec
Using Object.assign 6,984,701 Ops/sec