lodash merge vs object.assignFastest: object.assign (5.4x faster)
2,808,820 ops/sec
522,876 ops/sec
Fastest: object.assign (2.2x faster)
1,103,928 ops/sec
494,371 ops/sec
Fastest: object.assign (3.9x faster)
3,341,976 ops/sec
855,019 ops/sec
Fastest: object.assign (5.6x faster)
1,504,908 ops/sec
270,402 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| lodash merge | |
| object.assign |
| Test name | Executions per second |
|---|---|
| ✓ object.assign | 3,555,168 Ops/sec |
| lodash merge | 625,378 Ops/sec |