Search code examples
javadozer

How does Dozer Java API perform?


I have two questions related to the performance of Dozer using its Java API:

  1. In general, is mapping faster than using Dozer XML configuration? or are they about the same?
  2. How does it compare with other Java mapping frameworks, such as Orika?

Thank you!


Solution

  • In general mapping performance is the same either using XML configuration or Java API.

    Performance will depends on your application (use cases), basically Orika perform better than Dozer or other mapping (reflection based frameworks), because it use bytecode generation behind the scenes.

    IMO when you have to render HTML and access to a remote data store, the mapper performance may be untidy.

    Here is some benchmarks http://bit.ly/pJ7n6t