Lets compare few alternatives enumerated above:
- Dozer — each bean is created using reflection, mapping is customized using XML and Java code.
- Orika — beans are created and initialized using code generated by library, mapping can be customized using Java code and own expression language.
- Manual conversion — each bean is created and initialized with code written manually. All conversion is performed in Java code.
Key Observations :-
- Performance : manual 3ns Orika : 21 ns Dozer : 29 ns
- In general test proved that Orika is is almost as efficient as manually written code and much more performance than Dozer.
- Orika has more latency than Dozer.