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,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