lodash assign vs object.assign vs spread operator - variable and constant (version: 1)
Compares the creation of a new object by merging two existing ones using lodash, Object.assign and the spread operator, when merging an object literal with an object from a variable.
Comparing performance of: lodash assign vs object.assign vs spread
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
lodash assign
object.assign
spread
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_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36