bean-mapping: Dozer 7.0.0 vs MapStruct 1.6.3 module (basic/nested/collection/null handling, silent-failure pitfalls, records, lazy getters, parity test, compile-failure demos, JMH benchmark), 14 contract tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
a714780bca
commit
91f0757259
@@ -0,0 +1,13 @@
|
||||
$ java -version
|
||||
openjdk version "25.0.5.1" 2026-11-17 LTS
|
||||
OpenJDK Runtime Environment Temurin-25.0.5.1+2 (build 25.0.5.1+2-LTS)
|
||||
OpenJDK 64-Bit Server VM Temurin-25.0.5.1+2 (build 25.0.5.1+2-LTS, mixed mode, sharing)
|
||||
|
||||
$ uname -sr
|
||||
Linux 6.18.44-fc-v1045
|
||||
$ nproc
|
||||
2
|
||||
$ grep -m1 "model name" /proc/cpuinfo
|
||||
model name : Intel(R) Xeon(R) Processor @ 2.10GHz
|
||||
|
||||
Dozer 7.0.0, MapStruct 1.6.3, JMH 1.37
|
||||
@@ -0,0 +1,23 @@
|
||||
== 1. Basic mapping: id and username by name, email -> emailAddress by configuration
|
||||
ID: 1
|
||||
User: ankurm
|
||||
Email: [email protected]
|
||||
|
||||
== 2. Nested object: no configuration at all
|
||||
profile class: ProfileEntity
|
||||
first name: John
|
||||
|
||||
== 3. Collection: List<String> -> List<TagEntity> through the custom converter
|
||||
Java
|
||||
Spring Boot
|
||||
Dozer
|
||||
|
||||
== 4. Bidirectional: the same configuration maps the entity back
|
||||
round trip equals original: true
|
||||
UserDTO[id=1, username=ankurm, [email protected], profile=ProfileDTO[John Doe], tags=[Java, Spring Boot, Dozer, MapStruct, JMH]]
|
||||
|
||||
== 5. Null handling: default Dozer copies null over an existing value
|
||||
after mapping a DTO with null email and null profile: emailAddress=null, profile=null
|
||||
|
||||
== 6. Null handling: TypeMappingOptions.mapNull(false) keeps the existing value
|
||||
after the same update: [email protected], profile=ProfileEntity[John Doe]
|
||||
@@ -0,0 +1,26 @@
|
||||
== 1. A typo in a field name: when does it fail? (not at compile time)
|
||||
failed while building the mapper: MappingException: No read or write method found for field (emial) in class (class com.ankurm.beanmapping.model.UserDTO)
|
||||
|
||||
== 2. A field nobody maps: email -> emailAddress without the configuration line
|
||||
no exception, no log line. emailAddress=null
|
||||
|
||||
== 3. A new column on the entity (phone): does Dozer notice?
|
||||
no exception, no log line. UserEntityV2[id=1, username=ankurm, emailAddress=null, phone=null]
|
||||
|
||||
== 4. Records: as destination, then as source
|
||||
record destination failed: MappingException: java.lang.NoSuchMethodException: com.ankurm.beanmapping.model.UserRecord.<init>() [root cause NoSuchMethodException: com.ankurm.beanmapping.model.UserRecord.<init>()]
|
||||
record source: no exception, but look at the result: UserDTO[id=0, username=null, email=null, profile=null, tags=[]]
|
||||
|
||||
== 5. A converter registered globally, applied to a list, entity -> DTO
|
||||
DTO to entity worked: [Tag[Java], Tag[Spring Boot], Tag[Dozer], Tag[MapStruct], Tag[JMH]]
|
||||
entity to DTO, no exception: tags=[Tag[Java], Tag[Spring Boot], Tag[Dozer], Tag[MapStruct], Tag[JMH]]
|
||||
convertFrom() was never used: the elements are TagEntity.toString() output
|
||||
with a field-level converter: tags=[Java, Spring Boot, Dozer, MapStruct, JMH]
|
||||
|
||||
== 6. A lazy getter: does Dozer call it?
|
||||
map() failed: MappingException: java.lang.reflect.InvocationTargetException [root cause IllegalStateException: could not initialize proxy - no Session (simulated lazy collection)]
|
||||
getOrders() was called 1 time(s)
|
||||
|
||||
== 7. Same kind of entity, orders excluded in the mapping
|
||||
map() succeeded: LazyUserView[id=6, name=lazy2, orders=null]
|
||||
getOrders() was called 0 time(s)
|
||||
@@ -0,0 +1,18 @@
|
||||
== 1. Basic + nested + collection in one mapper
|
||||
UserEntity[id=1, username=ankurm, [email protected], profile=ProfileEntity[John Doe], tags=[Tag[Java], Tag[Spring Boot], Tag[Dozer], Tag[MapStruct], Tag[JMH]]]
|
||||
|
||||
== 2. Bidirectional through @InheritInverseConfiguration
|
||||
round trip equals original: true
|
||||
|
||||
== 3. Null handling: the plain method copies null, the update method with IGNORE does not
|
||||
new object from DTO with nulls: emailAddress=null, profile=null
|
||||
update() of an existing entity: [email protected], profile=ProfileEntity[John Doe]
|
||||
|
||||
== 4. Records, both directions
|
||||
record destination: UserRecord[id=1, username=ankurm]
|
||||
record source: UserDTO[id=7, username=rec, email=null, profile=null, tags=[]]
|
||||
|
||||
== 5. A lazy getter: MapStruct calls it too, unless you ignore the property
|
||||
map failed: IllegalStateException: could not initialize proxy - no Session (simulated lazy collection)
|
||||
without ignore, getOrders() was called 1 time(s)
|
||||
with ignore: LazyUserView[id=6, name=lazy2, orders=null], getOrders() called 0 time(s)
|
||||
@@ -0,0 +1,137 @@
|
||||
package com.ankurm.beanmapping.mapstruct;
|
||||
|
||||
import com.ankurm.beanmapping.model.ProfileDTO;
|
||||
import com.ankurm.beanmapping.model.ProfileEntity;
|
||||
import com.ankurm.beanmapping.model.TagEntity;
|
||||
import com.ankurm.beanmapping.model.UserDTO;
|
||||
import com.ankurm.beanmapping.model.UserEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.processing.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2026-12-01T08:07:17+0530",
|
||||
comments = "version: 1.6.3, compiler: javac, environment: Java 25.0.5.1 (Eclipse Adoptium)"
|
||||
)
|
||||
public class UserMapperImpl implements UserMapper {
|
||||
|
||||
@Override
|
||||
public UserEntity toEntity(UserDTO dto) {
|
||||
if ( dto == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
UserEntity userEntity = new UserEntity();
|
||||
|
||||
userEntity.setEmailAddress( dto.getEmail() );
|
||||
userEntity.setId( dto.getId() );
|
||||
userEntity.setUsername( dto.getUsername() );
|
||||
userEntity.setProfile( toEntity( dto.getProfile() ) );
|
||||
userEntity.setTags( stringListToTagEntityList( dto.getTags() ) );
|
||||
|
||||
return userEntity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserDTO toDto(UserEntity entity) {
|
||||
if ( entity == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
UserDTO userDTO = new UserDTO();
|
||||
|
||||
userDTO.setEmail( entity.getEmailAddress() );
|
||||
userDTO.setId( entity.getId() );
|
||||
userDTO.setUsername( entity.getUsername() );
|
||||
userDTO.setProfile( toDto( entity.getProfile() ) );
|
||||
userDTO.setTags( tagEntityListToStringList( entity.getTags() ) );
|
||||
|
||||
return userDTO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProfileEntity toEntity(ProfileDTO profile) {
|
||||
if ( profile == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ProfileEntity profileEntity = new ProfileEntity();
|
||||
|
||||
profileEntity.setFirstName( profile.getFirstName() );
|
||||
profileEntity.setLastName( profile.getLastName() );
|
||||
|
||||
return profileEntity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProfileDTO toDto(ProfileEntity profile) {
|
||||
if ( profile == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ProfileDTO profileDTO = new ProfileDTO();
|
||||
|
||||
profileDTO.setFirstName( profile.getFirstName() );
|
||||
profileDTO.setLastName( profile.getLastName() );
|
||||
|
||||
return profileDTO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(UserEntity target, UserDTO source) {
|
||||
if ( source == null ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( source.getEmail() != null ) {
|
||||
target.setEmailAddress( source.getEmail() );
|
||||
}
|
||||
target.setId( source.getId() );
|
||||
if ( source.getUsername() != null ) {
|
||||
target.setUsername( source.getUsername() );
|
||||
}
|
||||
if ( source.getProfile() != null ) {
|
||||
target.setProfile( toEntity( source.getProfile() ) );
|
||||
}
|
||||
if ( target.getTags() != null ) {
|
||||
List<TagEntity> list = stringListToTagEntityList( source.getTags() );
|
||||
if ( list != null ) {
|
||||
target.getTags().clear();
|
||||
target.getTags().addAll( list );
|
||||
}
|
||||
}
|
||||
else {
|
||||
List<TagEntity> list = stringListToTagEntityList( source.getTags() );
|
||||
if ( list != null ) {
|
||||
target.setTags( list );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected List<TagEntity> stringListToTagEntityList(List<String> list) {
|
||||
if ( list == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<TagEntity> list1 = new ArrayList<TagEntity>( list.size() );
|
||||
for ( String string : list ) {
|
||||
list1.add( toTag( string ) );
|
||||
}
|
||||
|
||||
return list1;
|
||||
}
|
||||
|
||||
protected List<String> tagEntityListToStringList(List<TagEntity> list) {
|
||||
if ( list == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<String> list1 = new ArrayList<String>( list.size() );
|
||||
for ( TagEntity tagEntity : list ) {
|
||||
list1.add( fromTag( tagEntity ) );
|
||||
}
|
||||
|
||||
return list1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
$ javac -processorpath target/processor/mapstruct-processor-*.jar -cp target/classes:target/lib/mapstruct-*.jar src/broken/java/BrokenInverseMapper.java
|
||||
src/broken/java/BrokenInverseMapper.java:21: error: Several matching inverse methods exist: toEntity(), update(). Specify a name explicitly.
|
||||
@InheritInverseConfiguration
|
||||
^
|
||||
src/broken/java/BrokenInverseMapper.java:22: warning: Unmapped target property: "email".
|
||||
UserDTO toDto(UserEntity entity);
|
||||
^
|
||||
1 error
|
||||
1 warning
|
||||
javac exit code: 1
|
||||
|
||||
$ javac -processorpath target/processor/mapstruct-processor-*.jar -cp target/classes:target/lib/mapstruct-*.jar src/broken/java/BrokenUserMapper.java
|
||||
src/broken/java/BrokenUserMapper.java:14: error: Unmapped target property: "phone".
|
||||
UserEntityV2 toEntity(UserDTO dto);
|
||||
^
|
||||
1 error
|
||||
javac exit code: 1
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: com.ankurm.beanmapping.BeanMappingClaimsTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.468 s -- in com.ankurm.beanmapping.BeanMappingClaimsTest
|
||||
@@ -0,0 +1,585 @@
|
||||
[
|
||||
{
|
||||
"jmhVersion" : "1.37",
|
||||
"benchmark" : "com.ankurm.beanmapping.bench.MappingBenchmark.dozerFlat",
|
||||
"mode" : "thrpt",
|
||||
"threads" : 1,
|
||||
"forks" : 3,
|
||||
"jvm" : "/tmp/tools/jdk-25.0.5.1+2/bin/java",
|
||||
"jvmArgs" : [
|
||||
"-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts",
|
||||
"-Djavax.net.ssl.trustStoreType=JKS",
|
||||
"-Dhttps.proxyHost=127.0.0.1",
|
||||
"-Dhttps.proxyPort=41629",
|
||||
"-Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local",
|
||||
"-Djdk.http.auth.tunneling.disabledSchemes=",
|
||||
"-Djdk.http.auth.proxying.disabledSchemes=",
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock"
|
||||
],
|
||||
"jdkVersion" : "25.0.5.1",
|
||||
"vmName" : "OpenJDK 64-Bit Server VM",
|
||||
"vmVersion" : "25.0.5.1+2-LTS",
|
||||
"warmupIterations" : 3,
|
||||
"warmupTime" : "1 s",
|
||||
"warmupBatchSize" : 1,
|
||||
"measurementIterations" : 8,
|
||||
"measurementTime" : "1 s",
|
||||
"measurementBatchSize" : 1,
|
||||
"primaryMetric" : {
|
||||
"score" : 221.15079518270628,
|
||||
"scoreError" : 83.37701602851097,
|
||||
"scoreConfidence" : [
|
||||
137.77377915419532,
|
||||
304.5278112112172
|
||||
],
|
||||
"scorePercentiles" : {
|
||||
"0.0" : 29.950808062188617,
|
||||
"50.0" : 201.99227949431673,
|
||||
"90.0" : 362.5805546202363,
|
||||
"95.0" : 374.9859328523041,
|
||||
"99.0" : 375.27587601099776,
|
||||
"99.9" : 375.27587601099776,
|
||||
"99.99" : 375.27587601099776,
|
||||
"99.999" : 375.27587601099776,
|
||||
"99.9999" : 375.27587601099776,
|
||||
"100.0" : 375.27587601099776
|
||||
},
|
||||
"scoreUnit" : "ops/ms",
|
||||
"rawData" : [
|
||||
[
|
||||
162.80935776974255,
|
||||
159.30514271118957,
|
||||
209.0469208257009,
|
||||
374.11610337622295,
|
||||
351.0450058642496,
|
||||
375.27587601099776,
|
||||
322.6550757936784,
|
||||
141.99450543556222
|
||||
],
|
||||
[
|
||||
64.72840723548235,
|
||||
90.8368311100669,
|
||||
58.724186393037535,
|
||||
287.28397669926323,
|
||||
284.02414132204586,
|
||||
291.7042172128254,
|
||||
194.93763816293253,
|
||||
158.03844475423315
|
||||
],
|
||||
[
|
||||
29.950808062188617,
|
||||
98.06581473898368,
|
||||
191.82718035511962,
|
||||
301.68550806706435,
|
||||
335.74852200504904,
|
||||
344.12451119273175,
|
||||
305.2200358367662,
|
||||
174.47087344981554
|
||||
]
|
||||
]
|
||||
},
|
||||
"secondaryMetrics" : {
|
||||
}
|
||||
},
|
||||
{
|
||||
"jmhVersion" : "1.37",
|
||||
"benchmark" : "com.ankurm.beanmapping.bench.MappingBenchmark.dozerNested",
|
||||
"mode" : "thrpt",
|
||||
"threads" : 1,
|
||||
"forks" : 3,
|
||||
"jvm" : "/tmp/tools/jdk-25.0.5.1+2/bin/java",
|
||||
"jvmArgs" : [
|
||||
"-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts",
|
||||
"-Djavax.net.ssl.trustStoreType=JKS",
|
||||
"-Dhttps.proxyHost=127.0.0.1",
|
||||
"-Dhttps.proxyPort=41629",
|
||||
"-Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local",
|
||||
"-Djdk.http.auth.tunneling.disabledSchemes=",
|
||||
"-Djdk.http.auth.proxying.disabledSchemes=",
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock"
|
||||
],
|
||||
"jdkVersion" : "25.0.5.1",
|
||||
"vmName" : "OpenJDK 64-Bit Server VM",
|
||||
"vmVersion" : "25.0.5.1+2-LTS",
|
||||
"warmupIterations" : 3,
|
||||
"warmupTime" : "1 s",
|
||||
"warmupBatchSize" : 1,
|
||||
"measurementIterations" : 8,
|
||||
"measurementTime" : "1 s",
|
||||
"measurementBatchSize" : 1,
|
||||
"primaryMetric" : {
|
||||
"score" : 159.81265797229125,
|
||||
"scoreError" : 42.01270749681554,
|
||||
"scoreConfidence" : [
|
||||
117.79995047547571,
|
||||
201.82536546910677
|
||||
],
|
||||
"scorePercentiles" : {
|
||||
"0.0" : 56.28656476628815,
|
||||
"50.0" : 163.1302842450439,
|
||||
"90.0" : 246.44824276107357,
|
||||
"95.0" : 254.10889309804801,
|
||||
"99.0" : 254.85479830823056,
|
||||
"99.9" : 254.85479830823056,
|
||||
"99.99" : 254.85479830823056,
|
||||
"99.999" : 254.85479830823056,
|
||||
"99.9999" : 254.85479830823056,
|
||||
"100.0" : 254.85479830823056
|
||||
},
|
||||
"scoreUnit" : "ops/ms",
|
||||
"rawData" : [
|
||||
[
|
||||
188.91147878320257,
|
||||
251.8711774675004,
|
||||
204.80805807839263,
|
||||
229.46131000863835,
|
||||
203.79758071247724,
|
||||
254.85479830823056,
|
||||
132.12019662732925,
|
||||
241.02530805464676
|
||||
],
|
||||
[
|
||||
162.3316802383285,
|
||||
155.20719711595157,
|
||||
127.75351797236094,
|
||||
163.9288882517593,
|
||||
136.41229225821795,
|
||||
106.52200706460687,
|
||||
168.64666067900976,
|
||||
178.70597225941933
|
||||
],
|
||||
[
|
||||
56.28656476628815,
|
||||
134.86000896181233,
|
||||
95.35893170555761,
|
||||
112.87165253246849,
|
||||
66.16653210131724,
|
||||
112.40650802563378,
|
||||
174.40088077752037,
|
||||
176.79458858431974
|
||||
]
|
||||
]
|
||||
},
|
||||
"secondaryMetrics" : {
|
||||
}
|
||||
},
|
||||
{
|
||||
"jmhVersion" : "1.37",
|
||||
"benchmark" : "com.ankurm.beanmapping.bench.MappingBenchmark.dozerNewMapperPerCallFlat",
|
||||
"mode" : "thrpt",
|
||||
"threads" : 1,
|
||||
"forks" : 3,
|
||||
"jvm" : "/tmp/tools/jdk-25.0.5.1+2/bin/java",
|
||||
"jvmArgs" : [
|
||||
"-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts",
|
||||
"-Djavax.net.ssl.trustStoreType=JKS",
|
||||
"-Dhttps.proxyHost=127.0.0.1",
|
||||
"-Dhttps.proxyPort=41629",
|
||||
"-Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local",
|
||||
"-Djdk.http.auth.tunneling.disabledSchemes=",
|
||||
"-Djdk.http.auth.proxying.disabledSchemes=",
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock"
|
||||
],
|
||||
"jdkVersion" : "25.0.5.1",
|
||||
"vmName" : "OpenJDK 64-Bit Server VM",
|
||||
"vmVersion" : "25.0.5.1+2-LTS",
|
||||
"warmupIterations" : 3,
|
||||
"warmupTime" : "1 s",
|
||||
"warmupBatchSize" : 1,
|
||||
"measurementIterations" : 8,
|
||||
"measurementTime" : "1 s",
|
||||
"measurementBatchSize" : 1,
|
||||
"primaryMetric" : {
|
||||
"score" : 9.221032039202589,
|
||||
"scoreError" : 4.06391604871615,
|
||||
"scoreConfidence" : [
|
||||
5.157115990486439,
|
||||
13.284948087918739
|
||||
],
|
||||
"scorePercentiles" : {
|
||||
"0.0" : 1.9608445741405718,
|
||||
"50.0" : 8.596891663404232,
|
||||
"90.0" : 17.78738095301896,
|
||||
"95.0" : 18.916680690005357,
|
||||
"99.0" : 19.25930860743531,
|
||||
"99.9" : 19.25930860743531,
|
||||
"99.99" : 19.25930860743531,
|
||||
"99.999" : 19.25930860743531,
|
||||
"99.9999" : 19.25930860743531,
|
||||
"100.0" : 19.25930860743531
|
||||
},
|
||||
"scoreUnit" : "ops/ms",
|
||||
"rawData" : [
|
||||
[
|
||||
5.197913912233286,
|
||||
6.863226083195238,
|
||||
8.416361826367531,
|
||||
8.897873634947418,
|
||||
9.276573887128896,
|
||||
13.764427250618908,
|
||||
17.685964968322427,
|
||||
17.888796937715497
|
||||
],
|
||||
[
|
||||
3.0031192571596845,
|
||||
6.329671923106893,
|
||||
11.834490915973934,
|
||||
11.988478515517281,
|
||||
11.539411525765868,
|
||||
12.752461640318572,
|
||||
17.668771460940654,
|
||||
19.25930860743531
|
||||
],
|
||||
[
|
||||
2.698114866070608,
|
||||
2.044443788324168,
|
||||
4.34391774140169,
|
||||
4.717761494543523,
|
||||
1.9608445741405718,
|
||||
8.093516231461402,
|
||||
6.301896397731904,
|
||||
8.777421500440933
|
||||
]
|
||||
]
|
||||
},
|
||||
"secondaryMetrics" : {
|
||||
}
|
||||
},
|
||||
{
|
||||
"jmhVersion" : "1.37",
|
||||
"benchmark" : "com.ankurm.beanmapping.bench.MappingBenchmark.manualFlat",
|
||||
"mode" : "thrpt",
|
||||
"threads" : 1,
|
||||
"forks" : 3,
|
||||
"jvm" : "/tmp/tools/jdk-25.0.5.1+2/bin/java",
|
||||
"jvmArgs" : [
|
||||
"-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts",
|
||||
"-Djavax.net.ssl.trustStoreType=JKS",
|
||||
"-Dhttps.proxyHost=127.0.0.1",
|
||||
"-Dhttps.proxyPort=41629",
|
||||
"-Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local",
|
||||
"-Djdk.http.auth.tunneling.disabledSchemes=",
|
||||
"-Djdk.http.auth.proxying.disabledSchemes=",
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock"
|
||||
],
|
||||
"jdkVersion" : "25.0.5.1",
|
||||
"vmName" : "OpenJDK 64-Bit Server VM",
|
||||
"vmVersion" : "25.0.5.1+2-LTS",
|
||||
"warmupIterations" : 3,
|
||||
"warmupTime" : "1 s",
|
||||
"warmupBatchSize" : 1,
|
||||
"measurementIterations" : 8,
|
||||
"measurementTime" : "1 s",
|
||||
"measurementBatchSize" : 1,
|
||||
"primaryMetric" : {
|
||||
"score" : 36658.50931424832,
|
||||
"scoreError" : 11549.811525596124,
|
||||
"scoreConfidence" : [
|
||||
25108.697788652193,
|
||||
48208.32083984444
|
||||
],
|
||||
"scorePercentiles" : {
|
||||
"0.0" : 8616.564820674375,
|
||||
"50.0" : 34869.59046592402,
|
||||
"90.0" : 53913.734619957104,
|
||||
"95.0" : 56333.08008254007,
|
||||
"99.0" : 56811.389754247124,
|
||||
"99.9" : 56811.389754247124,
|
||||
"99.99" : 56811.389754247124,
|
||||
"99.999" : 56811.389754247124,
|
||||
"99.9999" : 56811.389754247124,
|
||||
"100.0" : 56811.389754247124
|
||||
},
|
||||
"scoreUnit" : "ops/ms",
|
||||
"rawData" : [
|
||||
[
|
||||
52929.31817249529,
|
||||
51538.43581529059,
|
||||
51921.472877423614,
|
||||
21211.946114687296,
|
||||
18317.43907644728,
|
||||
8616.564820674375,
|
||||
11358.478794878209,
|
||||
21576.385191304056
|
||||
],
|
||||
[
|
||||
51185.85055533155,
|
||||
54898.15106741891,
|
||||
56811.389754247124,
|
||||
50796.970273459236,
|
||||
42961.41484744766,
|
||||
51347.39132927612,
|
||||
51193.033015103225,
|
||||
45944.57031667923
|
||||
],
|
||||
[
|
||||
35151.81329069875,
|
||||
30181.05694069575,
|
||||
26316.96548966959,
|
||||
32440.747793242997,
|
||||
28489.900576837113,
|
||||
21442.281584605935,
|
||||
34587.36764114928,
|
||||
28585.278202896396
|
||||
]
|
||||
]
|
||||
},
|
||||
"secondaryMetrics" : {
|
||||
}
|
||||
},
|
||||
{
|
||||
"jmhVersion" : "1.37",
|
||||
"benchmark" : "com.ankurm.beanmapping.bench.MappingBenchmark.manualNested",
|
||||
"mode" : "thrpt",
|
||||
"threads" : 1,
|
||||
"forks" : 3,
|
||||
"jvm" : "/tmp/tools/jdk-25.0.5.1+2/bin/java",
|
||||
"jvmArgs" : [
|
||||
"-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts",
|
||||
"-Djavax.net.ssl.trustStoreType=JKS",
|
||||
"-Dhttps.proxyHost=127.0.0.1",
|
||||
"-Dhttps.proxyPort=41629",
|
||||
"-Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local",
|
||||
"-Djdk.http.auth.tunneling.disabledSchemes=",
|
||||
"-Djdk.http.auth.proxying.disabledSchemes=",
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock"
|
||||
],
|
||||
"jdkVersion" : "25.0.5.1",
|
||||
"vmName" : "OpenJDK 64-Bit Server VM",
|
||||
"vmVersion" : "25.0.5.1+2-LTS",
|
||||
"warmupIterations" : 3,
|
||||
"warmupTime" : "1 s",
|
||||
"warmupBatchSize" : 1,
|
||||
"measurementIterations" : 8,
|
||||
"measurementTime" : "1 s",
|
||||
"measurementBatchSize" : 1,
|
||||
"primaryMetric" : {
|
||||
"score" : 12397.935082219037,
|
||||
"scoreError" : 3307.0988529853003,
|
||||
"scoreConfidence" : [
|
||||
9090.836229233737,
|
||||
15705.033935204337
|
||||
],
|
||||
"scorePercentiles" : {
|
||||
"0.0" : 4408.159358319243,
|
||||
"50.0" : 12233.911614112778,
|
||||
"90.0" : 18948.28737971707,
|
||||
"95.0" : 19508.580419549864,
|
||||
"99.0" : 19657.44456013049,
|
||||
"99.9" : 19657.44456013049,
|
||||
"99.99" : 19657.44456013049,
|
||||
"99.999" : 19657.44456013049,
|
||||
"99.9999" : 19657.44456013049,
|
||||
"100.0" : 19657.44456013049
|
||||
},
|
||||
"scoreUnit" : "ops/ms",
|
||||
"rawData" : [
|
||||
[
|
||||
10665.623223941877,
|
||||
11545.818692688285,
|
||||
15453.808847656579,
|
||||
12528.467869445092,
|
||||
11771.402132556617,
|
||||
15525.849648506868,
|
||||
15721.214316794807,
|
||||
13907.483171519409
|
||||
],
|
||||
[
|
||||
15010.272183776586,
|
||||
16785.843176258153,
|
||||
19657.44456013049,
|
||||
18834.586761626146,
|
||||
19061.987997807988,
|
||||
12487.743718798134,
|
||||
4408.159358319243,
|
||||
8350.43468336297
|
||||
],
|
||||
[
|
||||
8712.362488971254,
|
||||
15450.291146243984,
|
||||
7158.29218979867,
|
||||
9385.493684868008,
|
||||
4466.870092406491,
|
||||
8184.311482164494,
|
||||
10496.601036187225,
|
||||
11980.07950942742
|
||||
]
|
||||
]
|
||||
},
|
||||
"secondaryMetrics" : {
|
||||
}
|
||||
},
|
||||
{
|
||||
"jmhVersion" : "1.37",
|
||||
"benchmark" : "com.ankurm.beanmapping.bench.MappingBenchmark.mapstructFlat",
|
||||
"mode" : "thrpt",
|
||||
"threads" : 1,
|
||||
"forks" : 3,
|
||||
"jvm" : "/tmp/tools/jdk-25.0.5.1+2/bin/java",
|
||||
"jvmArgs" : [
|
||||
"-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts",
|
||||
"-Djavax.net.ssl.trustStoreType=JKS",
|
||||
"-Dhttps.proxyHost=127.0.0.1",
|
||||
"-Dhttps.proxyPort=41629",
|
||||
"-Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local",
|
||||
"-Djdk.http.auth.tunneling.disabledSchemes=",
|
||||
"-Djdk.http.auth.proxying.disabledSchemes=",
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock"
|
||||
],
|
||||
"jdkVersion" : "25.0.5.1",
|
||||
"vmName" : "OpenJDK 64-Bit Server VM",
|
||||
"vmVersion" : "25.0.5.1+2-LTS",
|
||||
"warmupIterations" : 3,
|
||||
"warmupTime" : "1 s",
|
||||
"warmupBatchSize" : 1,
|
||||
"measurementIterations" : 8,
|
||||
"measurementTime" : "1 s",
|
||||
"measurementBatchSize" : 1,
|
||||
"primaryMetric" : {
|
||||
"score" : 31096.421756318723,
|
||||
"scoreError" : 6517.096774234391,
|
||||
"scoreConfidence" : [
|
||||
24579.324982084334,
|
||||
37613.51853055311
|
||||
],
|
||||
"scorePercentiles" : {
|
||||
"0.0" : 15873.046652856061,
|
||||
"50.0" : 33991.333938806754,
|
||||
"90.0" : 41851.091546542055,
|
||||
"95.0" : 45738.35159030021,
|
||||
"99.0" : 46349.47716372606,
|
||||
"99.9" : 46349.47716372606,
|
||||
"99.99" : 46349.47716372606,
|
||||
"99.999" : 46349.47716372606,
|
||||
"99.9999" : 46349.47716372606,
|
||||
"100.0" : 46349.47716372606
|
||||
},
|
||||
"scoreUnit" : "ops/ms",
|
||||
"rawData" : [
|
||||
[
|
||||
15873.046652856061,
|
||||
21228.62581640453,
|
||||
22082.510170756155,
|
||||
18314.139231942652,
|
||||
30257.616688173817,
|
||||
33625.70745144038,
|
||||
38672.52293936087,
|
||||
35243.923402639586
|
||||
],
|
||||
[
|
||||
21795.334251630855,
|
||||
27627.533238147644,
|
||||
39797.20822306143,
|
||||
36114.3090001513,
|
||||
24839.657197755372,
|
||||
43904.97487002268,
|
||||
26649.67000426847,
|
||||
17581.4019670752
|
||||
],
|
||||
[
|
||||
37464.802328680926,
|
||||
46349.47716372606,
|
||||
36049.75627453405,
|
||||
37930.3406963263,
|
||||
30043.247088662778,
|
||||
34356.96042617312,
|
||||
35651.3451420274,
|
||||
34860.011925831706
|
||||
]
|
||||
]
|
||||
},
|
||||
"secondaryMetrics" : {
|
||||
}
|
||||
},
|
||||
{
|
||||
"jmhVersion" : "1.37",
|
||||
"benchmark" : "com.ankurm.beanmapping.bench.MappingBenchmark.mapstructNested",
|
||||
"mode" : "thrpt",
|
||||
"threads" : 1,
|
||||
"forks" : 3,
|
||||
"jvm" : "/tmp/tools/jdk-25.0.5.1+2/bin/java",
|
||||
"jvmArgs" : [
|
||||
"-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts",
|
||||
"-Djavax.net.ssl.trustStoreType=JKS",
|
||||
"-Dhttps.proxyHost=127.0.0.1",
|
||||
"-Dhttps.proxyPort=41629",
|
||||
"-Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local",
|
||||
"-Djdk.http.auth.tunneling.disabledSchemes=",
|
||||
"-Djdk.http.auth.proxying.disabledSchemes=",
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock"
|
||||
],
|
||||
"jdkVersion" : "25.0.5.1",
|
||||
"vmName" : "OpenJDK 64-Bit Server VM",
|
||||
"vmVersion" : "25.0.5.1+2-LTS",
|
||||
"warmupIterations" : 3,
|
||||
"warmupTime" : "1 s",
|
||||
"warmupBatchSize" : 1,
|
||||
"measurementIterations" : 8,
|
||||
"measurementTime" : "1 s",
|
||||
"measurementBatchSize" : 1,
|
||||
"primaryMetric" : {
|
||||
"score" : 16205.345660035842,
|
||||
"scoreError" : 2772.961050076817,
|
||||
"scoreConfidence" : [
|
||||
13432.384609959025,
|
||||
18978.306710112658
|
||||
],
|
||||
"scorePercentiles" : {
|
||||
"0.0" : 5234.956518533699,
|
||||
"50.0" : 16676.016400835335,
|
||||
"90.0" : 19922.511815969265,
|
||||
"95.0" : 20317.947503559906,
|
||||
"99.0" : 20400.899920080494,
|
||||
"99.9" : 20400.899920080494,
|
||||
"99.99" : 20400.899920080494,
|
||||
"99.999" : 20400.899920080494,
|
||||
"99.9999" : 20400.899920080494,
|
||||
"100.0" : 20400.899920080494
|
||||
},
|
||||
"scoreUnit" : "ops/ms",
|
||||
"rawData" : [
|
||||
[
|
||||
19494.370822686196,
|
||||
16749.274061004857,
|
||||
18860.277429876813,
|
||||
20069.090253998143,
|
||||
19614.200706449967,
|
||||
18657.195552152112,
|
||||
16197.474160203068,
|
||||
17816.94923062462
|
||||
],
|
||||
[
|
||||
5234.956518533699,
|
||||
17848.744784729886,
|
||||
11217.631598692515,
|
||||
16602.758740665813,
|
||||
14791.715605670659,
|
||||
15380.682115192976,
|
||||
13429.601893140147,
|
||||
12463.30987314028
|
||||
],
|
||||
[
|
||||
11548.353519284816,
|
||||
16361.331839542689,
|
||||
13394.407680723036,
|
||||
15554.882527815755,
|
||||
19775.933377940382,
|
||||
18552.136490034794,
|
||||
20400.899920080494,
|
||||
18912.117138676527
|
||||
]
|
||||
]
|
||||
},
|
||||
"secondaryMetrics" : {
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -0,0 +1,539 @@
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# JMH version: 1.37
|
||||
# VM version: JDK 25.0.5.1, OpenJDK 64-Bit Server VM, 25.0.5.1+2-LTS
|
||||
# VM invoker: /tmp/tools/jdk-25.0.5.1+2/bin/java
|
||||
# VM options: -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStoreType=JKS -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=41629 -Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.http.auth.proxying.disabledSchemes= -XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock
|
||||
# Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
|
||||
# Warmup: 3 iterations, 1 s each
|
||||
# Measurement: 8 iterations, 1 s each
|
||||
# Timeout: 10 min per iteration
|
||||
# Threads: 1 thread, will synchronize iterations
|
||||
# Benchmark mode: Throughput, ops/time
|
||||
# Benchmark: com.ankurm.beanmapping.bench.MappingBenchmark.dozerFlat
|
||||
|
||||
# Run progress: 0.00% complete, ETA 00:03:51
|
||||
# Fork: 1 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 74.562 ops/ms
|
||||
# Warmup Iteration 2: 215.036 ops/ms
|
||||
# Warmup Iteration 3: 123.121 ops/ms
|
||||
Iteration 1: 162.809 ops/ms
|
||||
Iteration 2: 159.305 ops/ms
|
||||
Iteration 3: 209.047 ops/ms
|
||||
Iteration 4: 374.116 ops/ms
|
||||
Iteration 5: 351.045 ops/ms
|
||||
Iteration 6: 375.276 ops/ms
|
||||
Iteration 7: 322.655 ops/ms
|
||||
Iteration 8: 141.995 ops/ms
|
||||
|
||||
# Run progress: 4.76% complete, ETA 00:03:58
|
||||
# Fork: 2 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 32.554 ops/ms
|
||||
# Warmup Iteration 2: 37.714 ops/ms
|
||||
# Warmup Iteration 3: 43.491 ops/ms
|
||||
Iteration 1: 64.728 ops/ms
|
||||
Iteration 2: 90.837 ops/ms
|
||||
Iteration 3: 58.724 ops/ms
|
||||
Iteration 4: 287.284 ops/ms
|
||||
Iteration 5: 284.024 ops/ms
|
||||
Iteration 6: 291.704 ops/ms
|
||||
Iteration 7: 194.938 ops/ms
|
||||
Iteration 8: 158.038 ops/ms
|
||||
|
||||
# Run progress: 9.52% complete, ETA 00:03:52
|
||||
# Fork: 3 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 22.510 ops/ms
|
||||
# Warmup Iteration 2: 49.928 ops/ms
|
||||
# Warmup Iteration 3: 54.992 ops/ms
|
||||
Iteration 1: 29.951 ops/ms
|
||||
Iteration 2: 98.066 ops/ms
|
||||
Iteration 3: 191.827 ops/ms
|
||||
Iteration 4: 301.686 ops/ms
|
||||
Iteration 5: 335.749 ops/ms
|
||||
Iteration 6: 344.125 ops/ms
|
||||
Iteration 7: 305.220 ops/ms
|
||||
Iteration 8: 174.471 ops/ms
|
||||
|
||||
|
||||
Result "com.ankurm.beanmapping.bench.MappingBenchmark.dozerFlat":
|
||||
221.151 ±(99.9%) 83.377 ops/ms [Average]
|
||||
(min, avg, max) = (29.951, 221.151, 375.276), stdev = 108.414
|
||||
CI (99.9%): [137.774, 304.528] (assumes normal distribution)
|
||||
|
||||
|
||||
# JMH version: 1.37
|
||||
# VM version: JDK 25.0.5.1, OpenJDK 64-Bit Server VM, 25.0.5.1+2-LTS
|
||||
# VM invoker: /tmp/tools/jdk-25.0.5.1+2/bin/java
|
||||
# VM options: -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStoreType=JKS -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=41629 -Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.http.auth.proxying.disabledSchemes= -XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock
|
||||
# Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
|
||||
# Warmup: 3 iterations, 1 s each
|
||||
# Measurement: 8 iterations, 1 s each
|
||||
# Timeout: 10 min per iteration
|
||||
# Threads: 1 thread, will synchronize iterations
|
||||
# Benchmark mode: Throughput, ops/time
|
||||
# Benchmark: com.ankurm.beanmapping.bench.MappingBenchmark.dozerNested
|
||||
|
||||
# Run progress: 14.29% complete, ETA 00:03:42
|
||||
# Fork: 1 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 21.066 ops/ms
|
||||
# Warmup Iteration 2: 54.979 ops/ms
|
||||
# Warmup Iteration 3: 184.689 ops/ms
|
||||
Iteration 1: 188.911 ops/ms
|
||||
Iteration 2: 251.871 ops/ms
|
||||
Iteration 3: 204.808 ops/ms
|
||||
Iteration 4: 229.461 ops/ms
|
||||
Iteration 5: 203.798 ops/ms
|
||||
Iteration 6: 254.855 ops/ms
|
||||
Iteration 7: 132.120 ops/ms
|
||||
Iteration 8: 241.025 ops/ms
|
||||
|
||||
# Run progress: 19.05% complete, ETA 00:03:30
|
||||
# Fork: 2 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 9.771 ops/ms
|
||||
# Warmup Iteration 2: 117.113 ops/ms
|
||||
# Warmup Iteration 3: 228.645 ops/ms
|
||||
Iteration 1: 162.332 ops/ms
|
||||
Iteration 2: 155.207 ops/ms
|
||||
Iteration 3: 127.754 ops/ms
|
||||
Iteration 4: 163.929 ops/ms
|
||||
Iteration 5: 136.412 ops/ms
|
||||
Iteration 6: 106.522 ops/ms
|
||||
Iteration 7: 168.647 ops/ms
|
||||
Iteration 8: 178.706 ops/ms
|
||||
|
||||
# Run progress: 23.81% complete, ETA 00:03:17
|
||||
# Fork: 3 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 11.403 ops/ms
|
||||
# Warmup Iteration 2: 29.984 ops/ms
|
||||
# Warmup Iteration 3: 45.793 ops/ms
|
||||
Iteration 1: 56.287 ops/ms
|
||||
Iteration 2: 134.860 ops/ms
|
||||
Iteration 3: 95.359 ops/ms
|
||||
Iteration 4: 112.872 ops/ms
|
||||
Iteration 5: 66.167 ops/ms
|
||||
Iteration 6: 112.407 ops/ms
|
||||
Iteration 7: 174.401 ops/ms
|
||||
Iteration 8: 176.795 ops/ms
|
||||
|
||||
|
||||
Result "com.ankurm.beanmapping.bench.MappingBenchmark.dozerNested":
|
||||
159.813 ±(99.9%) 42.013 ops/ms [Average]
|
||||
(min, avg, max) = (56.287, 159.813, 254.855), stdev = 54.628
|
||||
CI (99.9%): [117.800, 201.825] (assumes normal distribution)
|
||||
|
||||
|
||||
# JMH version: 1.37
|
||||
# VM version: JDK 25.0.5.1, OpenJDK 64-Bit Server VM, 25.0.5.1+2-LTS
|
||||
# VM invoker: /tmp/tools/jdk-25.0.5.1+2/bin/java
|
||||
# VM options: -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStoreType=JKS -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=41629 -Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.http.auth.proxying.disabledSchemes= -XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock
|
||||
# Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
|
||||
# Warmup: 3 iterations, 1 s each
|
||||
# Measurement: 8 iterations, 1 s each
|
||||
# Timeout: 10 min per iteration
|
||||
# Threads: 1 thread, will synchronize iterations
|
||||
# Benchmark mode: Throughput, ops/time
|
||||
# Benchmark: com.ankurm.beanmapping.bench.MappingBenchmark.dozerNewMapperPerCallFlat
|
||||
|
||||
# Run progress: 28.57% complete, ETA 00:03:04
|
||||
# Fork: 1 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 0.264 ops/ms
|
||||
# Warmup Iteration 2: 0.742 ops/ms
|
||||
# Warmup Iteration 3: 1.271 ops/ms
|
||||
Iteration 1: 5.198 ops/ms
|
||||
Iteration 2: 6.863 ops/ms
|
||||
Iteration 3: 8.416 ops/ms
|
||||
Iteration 4: 8.898 ops/ms
|
||||
Iteration 5: 9.277 ops/ms
|
||||
Iteration 6: 13.764 ops/ms
|
||||
Iteration 7: 17.686 ops/ms
|
||||
Iteration 8: 17.889 ops/ms
|
||||
|
||||
# Run progress: 33.33% complete, ETA 00:02:52
|
||||
# Fork: 2 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 0.186 ops/ms
|
||||
# Warmup Iteration 2: 4.832 ops/ms
|
||||
# Warmup Iteration 3: 1.705 ops/ms
|
||||
Iteration 1: 3.003 ops/ms
|
||||
Iteration 2: 6.330 ops/ms
|
||||
Iteration 3: 11.834 ops/ms
|
||||
Iteration 4: 11.988 ops/ms
|
||||
Iteration 5: 11.539 ops/ms
|
||||
Iteration 6: 12.752 ops/ms
|
||||
Iteration 7: 17.669 ops/ms
|
||||
Iteration 8: 19.259 ops/ms
|
||||
|
||||
# Run progress: 38.10% complete, ETA 00:02:39
|
||||
# Fork: 3 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 0.377 ops/ms
|
||||
# Warmup Iteration 2: 1.755 ops/ms
|
||||
# Warmup Iteration 3: 2.782 ops/ms
|
||||
Iteration 1: 2.698 ops/ms
|
||||
Iteration 2: 2.044 ops/ms
|
||||
Iteration 3: 4.344 ops/ms
|
||||
Iteration 4: 4.718 ops/ms
|
||||
Iteration 5: 1.961 ops/ms
|
||||
Iteration 6: 8.094 ops/ms
|
||||
Iteration 7: 6.302 ops/ms
|
||||
Iteration 8: 8.777 ops/ms
|
||||
|
||||
|
||||
Result "com.ankurm.beanmapping.bench.MappingBenchmark.dozerNewMapperPerCallFlat":
|
||||
9.221 ±(99.9%) 4.064 ops/ms [Average]
|
||||
(min, avg, max) = (1.961, 9.221, 19.259), stdev = 5.284
|
||||
CI (99.9%): [5.157, 13.285] (assumes normal distribution)
|
||||
|
||||
|
||||
# JMH version: 1.37
|
||||
# VM version: JDK 25.0.5.1, OpenJDK 64-Bit Server VM, 25.0.5.1+2-LTS
|
||||
# VM invoker: /tmp/tools/jdk-25.0.5.1+2/bin/java
|
||||
# VM options: -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStoreType=JKS -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=41629 -Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.http.auth.proxying.disabledSchemes= -XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock
|
||||
# Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
|
||||
# Warmup: 3 iterations, 1 s each
|
||||
# Measurement: 8 iterations, 1 s each
|
||||
# Timeout: 10 min per iteration
|
||||
# Threads: 1 thread, will synchronize iterations
|
||||
# Benchmark mode: Throughput, ops/time
|
||||
# Benchmark: com.ankurm.beanmapping.bench.MappingBenchmark.manualFlat
|
||||
|
||||
# Run progress: 42.86% complete, ETA 00:02:27
|
||||
# Fork: 1 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 27055.353 ops/ms
|
||||
# Warmup Iteration 2: 35857.111 ops/ms
|
||||
# Warmup Iteration 3: 46621.701 ops/ms
|
||||
Iteration 1: 52929.318 ops/ms
|
||||
Iteration 2: 51538.436 ops/ms
|
||||
Iteration 3: 51921.473 ops/ms
|
||||
Iteration 4: 21211.946 ops/ms
|
||||
Iteration 5: 18317.439 ops/ms
|
||||
Iteration 6: 8616.565 ops/ms
|
||||
Iteration 7: 11358.479 ops/ms
|
||||
Iteration 8: 21576.385 ops/ms
|
||||
|
||||
# Run progress: 47.62% complete, ETA 00:02:15
|
||||
# Fork: 2 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 20171.333 ops/ms
|
||||
# Warmup Iteration 2: 34919.455 ops/ms
|
||||
# Warmup Iteration 3: 37890.418 ops/ms
|
||||
Iteration 1: 51185.851 ops/ms
|
||||
Iteration 2: 54898.151 ops/ms
|
||||
Iteration 3: 56811.390 ops/ms
|
||||
Iteration 4: 50796.970 ops/ms
|
||||
Iteration 5: 42961.415 ops/ms
|
||||
Iteration 6: 51347.391 ops/ms
|
||||
Iteration 7: 51193.033 ops/ms
|
||||
Iteration 8: 45944.570 ops/ms
|
||||
|
||||
# Run progress: 52.38% complete, ETA 00:02:03
|
||||
# Fork: 3 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 29055.566 ops/ms
|
||||
# Warmup Iteration 2: 51279.215 ops/ms
|
||||
# Warmup Iteration 3: 53259.444 ops/ms
|
||||
Iteration 1: 35151.813 ops/ms
|
||||
Iteration 2: 30181.057 ops/ms
|
||||
Iteration 3: 26316.965 ops/ms
|
||||
Iteration 4: 32440.748 ops/ms
|
||||
Iteration 5: 28489.901 ops/ms
|
||||
Iteration 6: 21442.282 ops/ms
|
||||
Iteration 7: 34587.368 ops/ms
|
||||
Iteration 8: 28585.278 ops/ms
|
||||
|
||||
|
||||
Result "com.ankurm.beanmapping.bench.MappingBenchmark.manualFlat":
|
||||
36658.509 ±(99.9%) 11549.812 ops/ms [Average]
|
||||
(min, avg, max) = (8616.565, 36658.509, 56811.390), stdev = 15018.019
|
||||
CI (99.9%): [25108.698, 48208.321] (assumes normal distribution)
|
||||
|
||||
|
||||
# JMH version: 1.37
|
||||
# VM version: JDK 25.0.5.1, OpenJDK 64-Bit Server VM, 25.0.5.1+2-LTS
|
||||
# VM invoker: /tmp/tools/jdk-25.0.5.1+2/bin/java
|
||||
# VM options: -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStoreType=JKS -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=41629 -Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.http.auth.proxying.disabledSchemes= -XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock
|
||||
# Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
|
||||
# Warmup: 3 iterations, 1 s each
|
||||
# Measurement: 8 iterations, 1 s each
|
||||
# Timeout: 10 min per iteration
|
||||
# Threads: 1 thread, will synchronize iterations
|
||||
# Benchmark mode: Throughput, ops/time
|
||||
# Benchmark: com.ankurm.beanmapping.bench.MappingBenchmark.manualNested
|
||||
|
||||
# Run progress: 57.14% complete, ETA 00:01:51
|
||||
# Fork: 1 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 9619.721 ops/ms
|
||||
# Warmup Iteration 2: 8689.439 ops/ms
|
||||
# Warmup Iteration 3: 10481.773 ops/ms
|
||||
Iteration 1: 10665.623 ops/ms
|
||||
Iteration 2: 11545.819 ops/ms
|
||||
Iteration 3: 15453.809 ops/ms
|
||||
Iteration 4: 12528.468 ops/ms
|
||||
Iteration 5: 11771.402 ops/ms
|
||||
Iteration 6: 15525.850 ops/ms
|
||||
Iteration 7: 15721.214 ops/ms
|
||||
Iteration 8: 13907.483 ops/ms
|
||||
|
||||
# Run progress: 61.90% complete, ETA 00:01:38
|
||||
# Fork: 2 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 8709.272 ops/ms
|
||||
# Warmup Iteration 2: 13926.631 ops/ms
|
||||
# Warmup Iteration 3: 17914.073 ops/ms
|
||||
Iteration 1: 15010.272 ops/ms
|
||||
Iteration 2: 16785.843 ops/ms
|
||||
Iteration 3: 19657.445 ops/ms
|
||||
Iteration 4: 18834.587 ops/ms
|
||||
Iteration 5: 19061.988 ops/ms
|
||||
Iteration 6: 12487.744 ops/ms
|
||||
Iteration 7: 4408.159 ops/ms
|
||||
Iteration 8: 8350.435 ops/ms
|
||||
|
||||
# Run progress: 66.67% complete, ETA 00:01:26
|
||||
# Fork: 3 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 6878.772 ops/ms
|
||||
# Warmup Iteration 2: 5410.401 ops/ms
|
||||
# Warmup Iteration 3: 10296.224 ops/ms
|
||||
Iteration 1: 8712.362 ops/ms
|
||||
Iteration 2: 15450.291 ops/ms
|
||||
Iteration 3: 7158.292 ops/ms
|
||||
Iteration 4: 9385.494 ops/ms
|
||||
Iteration 5: 4466.870 ops/ms
|
||||
Iteration 6: 8184.311 ops/ms
|
||||
Iteration 7: 10496.601 ops/ms
|
||||
Iteration 8: 11980.080 ops/ms
|
||||
|
||||
|
||||
Result "com.ankurm.beanmapping.bench.MappingBenchmark.manualNested":
|
||||
12397.935 ±(99.9%) 3307.099 ops/ms [Average]
|
||||
(min, avg, max) = (4408.159, 12397.935, 19657.445), stdev = 4300.163
|
||||
CI (99.9%): [9090.836, 15705.034] (assumes normal distribution)
|
||||
|
||||
|
||||
# JMH version: 1.37
|
||||
# VM version: JDK 25.0.5.1, OpenJDK 64-Bit Server VM, 25.0.5.1+2-LTS
|
||||
# VM invoker: /tmp/tools/jdk-25.0.5.1+2/bin/java
|
||||
# VM options: -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStoreType=JKS -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=41629 -Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.http.auth.proxying.disabledSchemes= -XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock
|
||||
# Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
|
||||
# Warmup: 3 iterations, 1 s each
|
||||
# Measurement: 8 iterations, 1 s each
|
||||
# Timeout: 10 min per iteration
|
||||
# Threads: 1 thread, will synchronize iterations
|
||||
# Benchmark mode: Throughput, ops/time
|
||||
# Benchmark: com.ankurm.beanmapping.bench.MappingBenchmark.mapstructFlat
|
||||
|
||||
# Run progress: 71.43% complete, ETA 00:01:14
|
||||
# Fork: 1 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 15709.227 ops/ms
|
||||
# Warmup Iteration 2: 28973.008 ops/ms
|
||||
# Warmup Iteration 3: 8540.419 ops/ms
|
||||
Iteration 1: 15873.047 ops/ms
|
||||
Iteration 2: 21228.626 ops/ms
|
||||
Iteration 3: 22082.510 ops/ms
|
||||
Iteration 4: 18314.139 ops/ms
|
||||
Iteration 5: 30257.617 ops/ms
|
||||
Iteration 6: 33625.707 ops/ms
|
||||
Iteration 7: 38672.523 ops/ms
|
||||
Iteration 8: 35243.923 ops/ms
|
||||
|
||||
# Run progress: 76.19% complete, ETA 00:01:02
|
||||
# Fork: 2 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 16509.230 ops/ms
|
||||
# Warmup Iteration 2: 32734.248 ops/ms
|
||||
# Warmup Iteration 3: 18962.288 ops/ms
|
||||
Iteration 1: 21795.334 ops/ms
|
||||
Iteration 2: 27627.533 ops/ms
|
||||
Iteration 3: 39797.208 ops/ms
|
||||
Iteration 4: 36114.309 ops/ms
|
||||
Iteration 5: 24839.657 ops/ms
|
||||
Iteration 6: 43904.975 ops/ms
|
||||
Iteration 7: 26649.670 ops/ms
|
||||
Iteration 8: 17581.402 ops/ms
|
||||
|
||||
# Run progress: 80.95% complete, ETA 00:00:49
|
||||
# Fork: 3 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 14464.623 ops/ms
|
||||
# Warmup Iteration 2: 25986.606 ops/ms
|
||||
# Warmup Iteration 3: 32261.067 ops/ms
|
||||
Iteration 1: 37464.802 ops/ms
|
||||
Iteration 2: 46349.477 ops/ms
|
||||
Iteration 3: 36049.756 ops/ms
|
||||
Iteration 4: 37930.341 ops/ms
|
||||
Iteration 5: 30043.247 ops/ms
|
||||
Iteration 6: 34356.960 ops/ms
|
||||
Iteration 7: 35651.345 ops/ms
|
||||
Iteration 8: 34860.012 ops/ms
|
||||
|
||||
|
||||
Result "com.ankurm.beanmapping.bench.MappingBenchmark.mapstructFlat":
|
||||
31096.422 ±(99.9%) 6517.097 ops/ms [Average]
|
||||
(min, avg, max) = (15873.047, 31096.422, 46349.477), stdev = 8474.067
|
||||
CI (99.9%): [24579.325, 37613.519] (assumes normal distribution)
|
||||
|
||||
|
||||
# JMH version: 1.37
|
||||
# VM version: JDK 25.0.5.1, OpenJDK 64-Bit Server VM, 25.0.5.1+2-LTS
|
||||
# VM invoker: /tmp/tools/jdk-25.0.5.1+2/bin/java
|
||||
# VM options: -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStoreType=JKS -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=41629 -Dhttp.nonProxyHosts=localhost|127.0.0.1|::1|127.*|0.*|::|169.254.*|api.anthropic.com|api-staging.anthropic.com|api-pr-preview.anthropic.com|mcp-proxy.anthropic.com|mcp-proxy-staging.anthropic.com|registry.npmjs.org|jsr.io|npm.jsr.io|pypi.org|files.pythonhosted.org|index.crates.io|proxy.golang.org|host.docker.internal|10.*|172.16.*|172.17.*|172.18.*|172.19.*|172.20.*|172.21.*|172.22.*|172.23.*|172.24.*|172.25.*|172.26.*|172.27.*|172.28.*|172.29.*|172.30.*|172.31.*|192.168.*|100.64.0.0/10|*.svc.cluster.local|*.svc.cluster.local -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.http.auth.proxying.disabledSchemes= -XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_base64_encodeBlock,_base64_decodeBlock
|
||||
# Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
|
||||
# Warmup: 3 iterations, 1 s each
|
||||
# Measurement: 8 iterations, 1 s each
|
||||
# Timeout: 10 min per iteration
|
||||
# Threads: 1 thread, will synchronize iterations
|
||||
# Benchmark mode: Throughput, ops/time
|
||||
# Benchmark: com.ankurm.beanmapping.bench.MappingBenchmark.mapstructNested
|
||||
|
||||
# Run progress: 85.71% complete, ETA 00:00:37
|
||||
# Fork: 1 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 6811.175 ops/ms
|
||||
# Warmup Iteration 2: 17851.168 ops/ms
|
||||
# Warmup Iteration 3: 16877.612 ops/ms
|
||||
Iteration 1: 19494.371 ops/ms
|
||||
Iteration 2: 16749.274 ops/ms
|
||||
Iteration 3: 18860.277 ops/ms
|
||||
Iteration 4: 20069.090 ops/ms
|
||||
Iteration 5: 19614.201 ops/ms
|
||||
Iteration 6: 18657.196 ops/ms
|
||||
Iteration 7: 16197.474 ops/ms
|
||||
Iteration 8: 17816.949 ops/ms
|
||||
|
||||
# Run progress: 90.48% complete, ETA 00:00:24
|
||||
# Fork: 2 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 3070.643 ops/ms
|
||||
# Warmup Iteration 2: 4318.426 ops/ms
|
||||
# Warmup Iteration 3: 2286.492 ops/ms
|
||||
Iteration 1: 5234.957 ops/ms
|
||||
Iteration 2: 17848.745 ops/ms
|
||||
Iteration 3: 11217.632 ops/ms
|
||||
Iteration 4: 16602.759 ops/ms
|
||||
Iteration 5: 14791.716 ops/ms
|
||||
Iteration 6: 15380.682 ops/ms
|
||||
Iteration 7: 13429.602 ops/ms
|
||||
Iteration 8: 12463.310 ops/ms
|
||||
|
||||
# Run progress: 95.24% complete, ETA 00:00:12
|
||||
# Fork: 3 of 3
|
||||
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.openjdk.jmh.util.Utils (file:/tmp/work/java-core-examples/bean-mapping/target/lib/jmh-core-1.37.jar)
|
||||
WARNING: Please consider reporting this to the maintainers of class org.openjdk.jmh.util.Utils
|
||||
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
||||
# Warmup Iteration 1: 9593.683 ops/ms
|
||||
# Warmup Iteration 2: 6820.043 ops/ms
|
||||
# Warmup Iteration 3: 10792.027 ops/ms
|
||||
Iteration 1: 11548.354 ops/ms
|
||||
Iteration 2: 16361.332 ops/ms
|
||||
Iteration 3: 13394.408 ops/ms
|
||||
Iteration 4: 15554.883 ops/ms
|
||||
Iteration 5: 19775.933 ops/ms
|
||||
Iteration 6: 18552.136 ops/ms
|
||||
Iteration 7: 20400.900 ops/ms
|
||||
Iteration 8: 18912.117 ops/ms
|
||||
|
||||
|
||||
Result "com.ankurm.beanmapping.bench.MappingBenchmark.mapstructNested":
|
||||
16205.346 ±(99.9%) 2772.961 ops/ms [Average]
|
||||
(min, avg, max) = (5234.957, 16205.346, 20400.900), stdev = 3605.633
|
||||
CI (99.9%): [13432.385, 18978.307] (assumes normal distribution)
|
||||
|
||||
|
||||
# Run complete. Total time: 00:04:20
|
||||
|
||||
REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
|
||||
why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
|
||||
experiments, perform baseline and negative tests that provide experimental control, make sure
|
||||
the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
|
||||
Do not assume the numbers tell you what you want them to tell.
|
||||
|
||||
NOTE: Current JVM experimentally supports Compiler Blackholes, and they are in use. Please exercise
|
||||
extra caution when trusting the results, look into the generated code to check the benchmark still
|
||||
works, and factor in a small probability of new VM bugs. Additionally, while comparisons between
|
||||
different JVMs are already problematic, the performance difference caused by different Blackhole
|
||||
modes can be very significant. Please make sure you use the consistent Blackhole mode for comparisons.
|
||||
|
||||
Benchmark Mode Cnt Score Error Units
|
||||
MappingBenchmark.dozerFlat thrpt 24 221.151 ± 83.377 ops/ms
|
||||
MappingBenchmark.dozerNested thrpt 24 159.813 ± 42.013 ops/ms
|
||||
MappingBenchmark.dozerNewMapperPerCallFlat thrpt 24 9.221 ± 4.064 ops/ms
|
||||
MappingBenchmark.manualFlat thrpt 24 36658.509 ± 11549.812 ops/ms
|
||||
MappingBenchmark.manualNested thrpt 24 12397.935 ± 3307.099 ops/ms
|
||||
MappingBenchmark.mapstructFlat thrpt 24 31096.422 ± 6517.097 ops/ms
|
||||
MappingBenchmark.mapstructNested thrpt 24 16205.346 ± 2772.961 ops/ms
|
||||
|
||||
Benchmark result is saved to output/07-benchmark.json
|
||||
Reference in New Issue
Block a user