On Mon, 18 May 2026 12:44:40 GMT, Vladimir Kozlov <[email protected]> wrote:
> Good. > > Does this change performance for small app without AOT? I measured with HelloWorld: https://github.com/iklam/tools/blob/main/bench/cds-micro-bench/aot-hello.sh - The AOT cache file is about 15% smaller - The start-up time is about 3.5% faster $ bash aot-hello.sh /tmp/old-jdk /tmp/new-jdk 80 4 4 | tee log7.txt $ cat log7.txt | tclsh perf_stat_to_csv.tcl [...] Left : perf stat -r 80 /tmp/old-jdk/bin/java -XX:AOTMode=on -XX:AOTCache=hw1.aot -cp HelloWorld.jar HelloWorld Right: perf stat -r 80 /tmp/new-jdk/bin/java -XX:AOTMode=on -XX:AOTCache=hw2.aot -cp HelloWorld.jar HelloWorld 1: 110944146 104937748 ( -6006398) -- 13.088 12.488 ( -0.600) -- 2: 111061881 104022983 ( -7038898) --- 13.597 12.370 ( -1.227) ----- 3: 111599679 103106167 ( -8493512) --- 12.820 12.519 ( -0.301) - 4: 115378613 103164875 (-12213738) ----- 13.465 12.231 ( -1.234) ----- 5: 112011144 103530547 ( -8480597) --- 13.116 12.655 ( -0.461) -- 6: 110349975 104596757 ( -5753218) -- 13.007 12.458 ( -0.549) -- 7: 109251442 104653819 ( -4597623) -- 12.972 13.006 ( 0.034) 8: 110276083 101835141 ( -8440942) --- 12.992 12.305 ( -0.687) --- 9: 111227349 101835141 ( -9392208) ---- 13.108 12.947 ( -0.161) - 10: 111781171 102299420 ( -9481751) ---- 12.828 12.383 ( -0.445) -- 11: 109325784 102674487 ( -6651297) --- 13.520 12.199 ( -1.321) ----- 12: 111206933 102996673 ( -8210260) --- 12.834 13.062 ( 0.228) + 13: 109625788 99931196 ( -9694592) ---- 12.707 13.405 ( 0.698) +++ 14: 107254297 101947685 ( -5306612) -- 14.542 13.663 ( -0.879) --- 15: 106695457 99542494 ( -7152963) --- 13.901 13.493 ( -0.408) -- 16: 107057601 102326078 ( -4731523) -- 13.950 13.884 ( -0.066) ============================================================ 110295508 102701770 ( -7593737) --- 13.269 12.806 ( -0.463) -- instr delta = -7593737 -6.8849% time delta = -0.463 ms -3.4894% (+-1.21% vs +-1.22%) $ ls -l *aot -rw-rw-r-- 1 iklam iklam 10588160 May 18 21:18 hw1.aot -rw-rw-r-- 1 iklam iklam 9076736 May 18 21:18 hw2.aot ------------- PR Comment: https://git.openjdk.org/jdk/pull/31142#issuecomment-4484376044
