Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
lodash merge 3819269.2 Ops/sec
object.assign 7686899.5 Ops/sec
spread 2744127.8 Ops/sec
lodash assign 5284017.0 Ops/sec
Good old for loop 933359296.0 Ops/sec
HTML Preparation code:
Tests:
  • lodash merge

  • object.assign

  • spread

  • lodash assign

  • Good old for loop