RFR: 8316814: NMT: A separate script or Java program is needed to analyze and make useful reports ouf of JMH benchmarks outputs. [v2]
Afshin Zafari
azafari at openjdk.org
Mon Oct 23 08:21:57 UTC 2023
> It reads the benchmark report file whose path is given as command line. Then extract percentage of overhead of NMT modes for different methods used in benchmarks.
> Locally tested with some sample report files.
> From an input benchmark report like this:
>
> # JMH version: 1.37
> # VM version: JDK 22-internal, OpenJDK 64-Bit Server VM,......in...
> # VM invoker:.....
> # VM options: -XX:NativeMemoryTracking=detail --add-exports java.base/jdk.internal.misc=ALL-UNNAMED -Djava.library.path=...
> # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
> # Warmup: 2 iterations, 1 s each
> # Measurement: 5 iterations, 1 s each
> # Timeout: 10 min per iteration
> # Threads: 1 thread, will synchronize iterations
> # Benchmark mode: Average time, time/op
> # Benchmark: org.openjdk.bench.vm.runtime.NMTBenchmark.NMTDetail.mixAallocateFreeMemory
> # Parameters: (N = 100000, THREADS = 4)
>
> .
> .
> .
>
>
> Benchmark (N) (THREADS) Mode Cnt Score Error Units
> NMTBenchmark.NMTDetail.mixAallocateFreeMemory 100000 0 avgt 10 87.010 ? 10.630 ms/op
> NMTBenchmark.NMTDetail.mixAallocateFreeMemory 100000 4 avgt 10 2.473 ? 0.728 ms/op
> NMTBenchmark.NMTDetail.mixAllocateReallocateMemory 100000 0 avgt 10 225.054 ? 4.381 ms/op
> NMTBenchmark.NMTDetail.mixAllocateReallocateMemory 100000 4 avgt 10 2.247 ? 0.599 ms/op
> NMTBenchmark.NMTDetail.onlyAllocateMemory 100000 0 avgt 10 147.346 ? 8.226 ms/op
> NMTBenchmark.NMTDetail.onlyAllocateMemory 100000 4 avgt 10 2.285 ? 0.611 ms/op
> NMTBenchmark.NMTOff.mixAallocateFreeMemory 100000 0 avgt 10 40.405 ? 8.115 ms/op
> NMTBenchmark.NMTOff.mixAallocateFreeMemory 100000 4 avgt 10 2.299 ? 0.658 ms/op
> NMTBenchmark.NMTOff.mixAllocateReallocateMemory 100000 0 avgt 10 158.700 ? 10.750 ms/op
> NMTBenchmark.NMTOff.mixAllocateReallocateMemory 100000 4 avgt 10 2.282 ? 0.723 ms/op
> NMTBenchmark.NMTOff.onlyAllocateMemory 100000 0 avgt 10 113.949 ? 21.257 ms/op
> NMTBenchmark.NMTOff.onlyAllocateMemory 100000 4 avgt 10 2.155 ? 0.682 ms/op
> NMTBenchmark.NMTSummary.mixAallocateFreeMemory 100000 0 avgt 10 50.436 ? 4.576 ms/op
> NMTBenchmark.NMTSummary.mixAallocateFreeMemory 100000 4 avgt 10 2.192 ? 0.7...
Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision:
empty 'finally' block is removed.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/16070/files
- new: https://git.openjdk.org/jdk/pull/16070/files/e341320c..ce1b1673
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=16070&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=16070&range=00-01
Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/16070.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16070/head:pull/16070
PR: https://git.openjdk.org/jdk/pull/16070
More information about the hotspot-runtime-dev
mailing list