lodash.assign vs object.assign vs spread (version: 0)
lodash.merge is NOT equivalent to object.assign, it does much more work so obviously it's slower
tbh though lodash.assign is probably just a wrapper for object.assign for all I know
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:
5 years ago)
Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0