Comparing different object merge methods
4 years ago
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36
Test name |
Executions per second |
Lodash merge |
2502013.0 Ops/sec |
object.assign |
5099819.0 Ops/sec |
spread |
19495840.0 Ops/sec |
spread mutate |
20728950.0 Ops/sec |
Tests:
-
Lodash merge
-
object.assign
-
spread
-
spread mutate
Open this result on MeasureThat.net