@@ -4,33 +4,36 @@ A high-performance, lightweight object-to-object mapper for .NET with zero depen
44
55## Feature Comparison
66
7- | Feature | ValueMapper | Mapster | AutoMapper |
8- | ---------------------------- | -------------- | ------------- | -------------- |
9- | Zero Dependencies | ✅ | ✅ | ❌ |
10- | Basic Property Mapping | ✅ | ✅ | ✅ |
11- | Flattening | ❌ | ✅ | ✅ |
12- | Deep Object Mapping | ❌ | ✅ | ✅ |
13- | Collection Mapping | ✅ | ✅ | ✅ |
14- | Enum Mapping | ✅ | ✅ | ✅ |
15- | Custom Property Mapping | ✅ | ✅ | ✅ |
16- | Property Ignoring | ✅ | ✅ | ✅ |
17- | Type Conversion | ✅ | ✅ | ✅ |
18- | Nullable Handling | ✅ | ✅ | ✅ |
19- | Configuration API | ❌ | ✅ | ✅ |
20- | Custom Value Resolvers | ❌ | ✅ | ✅ |
21- | Conditional Mapping | ❌ | ✅ | ✅ |
22- | Circular Reference Handling | ❌ | ✅ | ✅ |
23- | Before/After Mapping Actions | ❌ | ✅ | ✅ |
24- | Runtime Configuration | ❌ | ✅ | ✅ |
25- | Mapping Validation | ❌ | ✅ | ✅ |
26- | Collection Type Conversion | ❌ | ✅ | ✅ |
27- | Parallel Collection Mapping | ✅ | ✅ | ✅ |
28- | Compile-time Type Safety | ❌ | ✅ | ❌ |
29- | Mapping Cache | ✅ | ✅ | ✅ |
30- | Performance (vs Manual)\* | ~ 11.95x slower | ~ 8.11x slower | ~ 12.67x slower |
7+ | Feature | ValueMapper | Mapster | AutoMapper |
8+ | ---------------------------- | ------------------- | ------------- | -------------- |
9+ | Zero Dependencies | ✅ | ✅ | ❌ |
10+ | Basic Property Mapping | ✅ | ✅ | ✅ |
11+ | Flattening | ❌ | ✅ | ✅ |
12+ | Deep Object Mapping | ❌ | ✅ | ✅ |
13+ | Collection Mapping | ✅ | ✅ | ✅ |
14+ | Enum Mapping | ✅ | ✅ | ✅ |
15+ | Custom Property Mapping | ✅ (attr) | ✅ | ✅ |
16+ | Property Ignoring | ✅ | ✅ | ✅ |
17+ | Type Conversion | ✅ | ✅ | ✅ |
18+ | Nullable Handling | ✅ | ✅ | ✅ |
19+ | Configuration API | ❌ | ✅ | ✅ |
20+ | Custom Value Resolvers | ❌ | ✅ | ✅ |
21+ | Conditional Mapping | ❌ | ✅ | ✅ |
22+ | Circular Reference Handling | ❌ | ✅ | ✅ |
23+ | Before/After Mapping Actions | ❌ | ✅ | ✅ |
24+ | Runtime Configuration | ❌ | ✅ | ✅ |
25+ | Mapping Validation | ❌ | ✅ | ✅ |
26+ | Collection Type Conversion | ❌ (List→List only) | ✅ | ✅ |
27+ | Parallel Collection Mapping | ✅ (built-in) | ❌+ | ❌+ |
28+ | Compile-time Type Safety | ✅ | ❌‡ | ❌‡ |
29+ | Mapping Cache | ✅ | ✅ | ✅ |
30+ | Performance (vs Manual)\* | ~ 11.95x slower | ~ 8.11x slower | ~ 12.67x slower |
3131
3232\* Based on benchmark results for single object mapping. For collection mapping (100,000 items), ValueMapper performs better: ValueMapper (39.84ms), Mapster (65.34ms), AutoMapper (70.80ms).
3333
34+ - Can be implemented manually
35+ ‡ Available through source generators
36+
3437## Features
3538
3639- ✨ Zero dependencies
0 commit comments