Inconsistent description of performance benefit of CDS · Issue #273 · java/devjava-content
Repository navigation
Inconsistent description of performance benefit of CDS #273
New issue
New issue
Open
Open
Inconsistent description of performance benefit of CDS #273
Description
@willy-b's profile willy-b opened on Aug 13, 2026Hello dev.java team!
Sharing what appears to be an unintentional discrepancy on one of your pages in case the team is interested to fix it.
In the latest version of https://dev.java/learn/jvm/cds-appcds/ (archived as is at https://megalodon.jp/2026-0814-0145-27/https://dev.java:443/learn/jvm/cds-appcds/ )
-
In the "Performance Benefits of CDS" description
The performance gains from CDS are about 33% when tested using a simple "Hello World" application, as seen in the below test results:
$ time java -Xshare:off HelloWorld Hello world! java -Xshare:off HelloWorld 0.08s $ time java -Xshare:on HelloWorld Hello world! java -Xshare:on HelloWorld 0.05sWith -Xshare:off the execution time of the application was 0.10 seconds, while with -Xshare:on it was 0.05 seconds.
the description "-Xshare:off the execution time of the application was 0.10 seconds, while with -Xshare:on it was 0.05 seconds" does not match the
timeoutput given immediately before that statement, which shows 0.08 seconds vs 0.05 seconds instead.
(Also I am not sure what version of the unix/POSIX time command (see in list https://en.wikipedia.org/w/index.php?title=List_of_POSIX_commands&oldid=1361676414 ) puts out the command a second time with the time next to it and does not display multiple types of duration (real/wallclock vs user or system CPU times) as is done above.)
Thanks very much!