Skip to content

Commit 51f78d3

Browse files
committed
Readme updated based on the benchmark details
1 parent ba1eb4c commit 51f78d3

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,20 @@ ValueMapper is designed for high performance. Here are some benchmark results co
289289
- No significant warmup overhead
290290
- Better startup time compared to both Mapster and AutoMapper
291291

292+
### Other Observations
293+
294+
- **Bimodal distribution** in AutoMapper, Mapster, and ManuallyImplementedMapper suggests occasional performance variability.
295+
- **AutoMapper and Mapster** have significantly higher memory allocations (up to 1.67×).
296+
- **ManuallyImplemented** options consistently perform best in both speed and memory.
297+
298+
### ✅ Recommendation
299+
300+
For **maximum performance**, prefer:
301+
302+
- **`ManuallyImplemented`** mapper (best for both individual and collection mapping).
303+
- If needing flexibility with a balance of performance: **`ValueMapper`**.
304+
- **Avoid `Mapster` and `AutoMapper`** in large collection transformations if performance is critical.
305+
292306
Run the benchmarks yourself:
293307

294308
```shell

ValueMapper/ValueMapperCore/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,20 @@ ValueMapper is designed for high performance. Here are some benchmark results co
289289
- No significant warmup overhead
290290
- Better startup time compared to both Mapster and AutoMapper
291291

292+
### Other Observations
293+
294+
- **Bimodal distribution** in AutoMapper, Mapster, and ManuallyImplementedMapper suggests occasional performance variability.
295+
- **AutoMapper and Mapster** have significantly higher memory allocations (up to 1.67×).
296+
- **ManuallyImplemented** options consistently perform best in both speed and memory.
297+
298+
### ✅ Recommendation
299+
300+
For **maximum performance**, prefer:
301+
302+
- **`ManuallyImplemented`** mapper (best for both individual and collection mapping).
303+
- If needing flexibility with a balance of performance: **`ValueMapper`**.
304+
- **Avoid `Mapster` and `AutoMapper`** in large collection transformations if performance is critical.
305+
292306
Run the benchmarks yourself:
293307

294308
```shell

0 commit comments

Comments
 (0)