lodash merge vs object.assign vs spread (no intermediate vars)

one month ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4186.0 Safari/537.36
Test name Executions per second
lodash merge 2647034.0 Ops/sec
object.assign 5045270.0 Ops/sec
spread 1758505.0 Ops/sec
HTML Preparation code:
Tests:
  • lodash merge

  • object.assign

  • spread

Open this result on MeasureThat.net