Files
spring-boot-demo/mapstruct/output/16-indicative-timing-vs-handwritten-and-dozer.txt
T

14 lines
589 B
Plaintext

# INDICATIVE timings: hand-written vs MapStruct vs Dozer (setter-based beans)
Java 25.0.3+9-LTS-195, one JVM, 200000 iterations per round, best of 5 rounds after a 50000-iteration warm-up
mapping: Customer -> CustomerView (1 address, 1 order with 2 lines, 1 set, 1 map)
hand-written 95 ns/op
MapStruct 1.6.3 92 ns/op (1.0x hand-written)
Dozer 7.0.0 11498 ns/op (122x hand-written)
first call, cold: MapStruct 0.13 ms, Dozer 80.9 ms
results equal: true
Indicative only. Timings vary between runs and machines; do not quote them as a benchmark result.