Object.assign() vs spread operator (New object) (version: 0)
This benchmark looks at how fast Object.assign() is compared to spread operator when used with {} to make up for the fact that Object.assign() doesn't create a new object
Comparing performance of: Object.assign() vs Spread operator
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
Object.assign()
Spread operator
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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36