Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Deep merge lodash 4.6.2 vs ramda vs deepmerge
(version: 0)
Comparing performance of:
Ramda.mergeDeepRight vs Lodash.merge vs deepmerge
Created:
4 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="//cdn.jsdelivr.net/npm/ramda@latest/dist/ramda.min.js"></script> <script src="https://raw.githubusercontent.com/lodash/lodash/4.6.2-npm/lodash.js"></script> <script src="https://unpkg.com/deepmerge/dist/umd.js"></script>
Script Preparation code:
var obj1 = [ { "id": "0001", "type": "donut", "name": "Cake", "ppu": 0.55, "batters": { "batter": [ { "id": "1001", "type": "Regular" }, { "id": "1002", "type": "Chocolate" }, { "id": "1003", "type": "Blueberry" }, { "id": "1004", "type": "Devil's Food" } ] }, "topping": [ { "id": "5001", "type": "None" }, { "id": "5002", "type": "Glazed" }, { "id": "5005", "type": "Sugar" }, { "id": "5007", "type": "Powdered Sugar" }, { "id": "5006", "type": "Chocolate with Sprinkles" }, { "id": "5003", "type": "Chocolate" }, { "id": "5004", "type": "Maple" } ] }, { "id": "0002", "type": "donut", "name": "Raised", "ppu": 0.55, "batters": { "batter": [ { "id": "1001", "type": "Regular" } ] }, "topping": [ { "id": "5001", "type": "None" }, { "id": "5002", "type": "Glazed" }, { "id": "5005", "type": "Sugar" }, { "id": "5003", "type": "Chocolate" }, { "id": "5004", "type": "Maple" } ] }, { "id": "0003", "type": "donut", "name": "Old Fashioned", "ppu": 0.55, "batters": { "batter": [ { "id": "1001", "type": "Regular" }, { "id": "1002", "type": "Chocolate" } ] }, "topping": [ { "id": "5001", "type": "None" }, { "id": "5002", "type": "Glazed" }, { "id": "5003", "type": "Chocolate" }, { "id": "5004", "type": "Maple" } ] } ] var obj2 = [ { "id": "0001", "type": "donut", "name": "Cake", "ppu": 0.55, "batters": { "batter": [ { "id": "1001", "type": "Overwritten" }, { "id": "1002", "type": "Chocolate" }, { "id": "1003", "type": "Overwritten" }, { "id": "1004", "type": "Devil's Food" } ] }, "topping": [ { "id": "5001", "type": "Overwritten" }, { "id": "5002", "type": "Overwritten" }, { "id": "5005", "type": "Sugar" }, { "id": "5007", "type": "Powdered Sugar" }, { "id": "5006", "type": "Chocolate with Sprinkles" }, { "id": "5003", "type": "Chocolate" }, { "id": "5004", "type": "Overwritten" } ] }, { "id": "0002", "type": "Overwritten", "name": "Raised", "ppu": 0.55, "batters": { "batter": [ { "id": "1001", "type": "Overwritten" } ] }, "topping": [ { "id": "5001", "type": "None" }, { "id": "5002", "type": "Overwritten" }, { "id": "5005", "type": "Sugar" }, { "id": "5003", "type": "Chocolate" }, { "id": "5004", "type": "Maple" } ] }, { "id": "0003", "type": "Overwritten", "name": "Old Fashioned", "ppu": 0.55, "batters": { "batter": [ { "id": "1001", "type": "Overwritten" }, { "id": "1002", "type": "Chocolate" } ] }, "topping": [ { "id": "5001", "type": "None" }, { "id": "5002", "type": "Glazed" }, { "id": "5003", "type": "Chocolate" }, { "id": "5004", "type": "Maple" } ] } ]
Tests:
Ramda.mergeDeepRight
R.mergeDeepRight(obj1, obj2)
Lodash.merge
_.merge(obj1, obj2)
deepmerge
deepmerge(obj1, obj2)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Ramda.mergeDeepRight
Lodash.merge
deepmerge
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
To provide an answer, I'll need to combine the provided data into a structured format and then perform some analysis. **Combining Data** Here's the combined data: ```json { "Data": { "Html Preparation Code": "<script src=\"//cdn.jsdelivr.net/npm/ramda@latest/dist/ramda.min.js\"></script>\r\n<script src=\"https://raw.githubusercontent.com/lodash/lodash/4.6.2-npm/lodash.js\"></script>\r\n<script src=\"https://unpkg.com/deepmerge/dist/umd.js\"></script>", "Individual test cases": [ { "Benchmark Definition": "R.mergeDeepRight(obj1, obj2)", "Test Name": "Ramda.mergeDeepRight" }, { "Benchmark Definition": "_.merge(obj1, obj2)", "Test Name": "Lodash.merge" }, { "Benchmark Definition": "deepmerge(obj1, obj2)", "Test Name": "deepmerge" } ], "Latest benchmark result": [ { "RawUAString": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36", "Browser": "Chrome 98", "DevicePlatform": "Desktop", "OperatingSystem": "Windows", "ExecutionsPerSecond": 370994.15625, "TestName": "Ramda.mergeDeepRight" }, { "RawUAString": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36", "Browser": "Chrome 98", "DevicePlatform": "Desktop", "OperatingSystem": "Windows", "ExecutionsPerSecond": 58056.2890625, "TestName": "Lodash.merge" }, { "RawUAString": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36", "Browser": "Chrome 98", "DevicePlatform": "Desktop", "OperatingSystem": "Windows", "ExecutionsPerSecond": 40208.6640625, "TestName": "deepmerge" } ] } } ``` **Analysis** The provided data seems to be related to benchmarking and testing of different JavaScript libraries for merging objects. To provide a meaningful answer, I would need more context or information about what you're trying to achieve with this data. However, I can offer some suggestions: 1. **Benchmark Comparison**: You could analyze the latest benchmark results to compare the performance of Ramda, Lodash, and deepmerge for different scenarios. 2. **Library Performance**: You could investigate which library performs better in terms of execution speed, memory usage, or other factors. 3. **Error Handling**: You could look into how each library handles errors or edge cases when merging objects. Please provide more context or clarify what you're trying to achieve with this data, and I'll be happy to assist further!
Related benchmarks:
Deep merge lodash vs ramda vs deepmerge vs json clone
Deep merge lodash vs ramda vs deepmerge vs json clone 3
Object Cloning Comparsion
Deep merge lodash vs ramda vs Immutable with multiple objects
Comments
Confirm delete:
Do you really want to delete benchmark?