Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
Using the spread operator
23.2M/s
Using Object.assign
1.6M/s

Fastest: Using the spread operator (14.3x faster)

View exact numbers
  • Using the spread operator: 23,190,372 ops/sec
  • Using Object.assign: 1,616,238 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 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0
Firefox 140 on Windows
View result in a separate tab
Using the spread operator
8.3M/s
Using Object.assign
3.8M/s
View exact numbers
Test name Executions per second
Using the spread operator 8,279,573 Ops/sec
Using Object.assign 3,783,220 Ops/sec