Add compact-strings module: Compact Strings (JEP 254) measured with JOL on JDK 25, with and without -XX:-CompactStrings, and compact object headers on 25 vs 27
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
$ java -Xmx3g MillionStrings (JDK 27)
|
||||
java.version = 27
|
||||
strings : 1,000,000 (average 42.50 chars)
|
||||
coder == 0 (LATIN1) in set A : 1,000,000
|
||||
coder == 1 (UTF16) in set B : 1,000,000
|
||||
# WARNING: Unable to attach Serviceability Agent. sun.jvm.hotspot.runtime.VM.isCompressedKlassPointersEnabled()
|
||||
A: lower-case ASCII only : 86,150,520 bytes (86.2 MB, 86.2 bytes per string)
|
||||
B: same + one euro sign : 130,145,168 bytes (130.1 MB, 130.1 bytes per string)
|
||||
B / A : 1.511
|
||||
Reference in New Issue
Block a user