HTML Preparation code:
Tests:

Historical Performance Data aggregated from 232 community runs

Desktop Results:
Chrome 192 runs
object.assign
2.8M/s
lodash merge
523K/s

Fastest: object.assign (5.4x faster)

View exact numbers
  • object.assign: 2,808,820 ops/sec
  • lodash merge: 522,876 ops/sec
Firefox 26 runs
object.assign
1.1M/s
lodash merge
494K/s

Fastest: object.assign (2.2x faster)

View exact numbers
  • object.assign: 1,103,928 ops/sec
  • lodash merge: 494,371 ops/sec
Safari 9 runs
object.assign
3.3M/s
lodash merge
855K/s

Fastest: object.assign (3.9x faster)

View exact numbers
  • object.assign: 3,341,976 ops/sec
  • lodash merge: 855,019 ops/sec
Mobile Results:
Chrome 5 runs
object.assign
1.5M/s
lodash merge
270K/s

Fastest: object.assign (5.6x faster)

View exact numbers
  • object.assign: 1,504,908 ops/sec
  • lodash merge: 270,402 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    lodash merge
    object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Mac OS X 10.15.7
View result in a separate tab
object.assign
3.6M/s
lodash merge
625K/s
View exact numbers
Test name Executions per second
object.assign 3,555,168 Ops/sec
lodash merge 625,378 Ops/sec