Java 27 and 26: runnable demos and captured output for every JEP, plus version lanes
Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B38FGKKam5SCGgwgduVAh3
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# Instance sizes in bytes, extracted from 10-, 11- and 12- transcripts
|
||||
--- 10-headers-jdk26
|
||||
=== java.lang.Object -> Instance size: 16 bytes
|
||||
=== Point { int x; int y; } -> Instance size: 24 bytes
|
||||
=== Order { long id; int quantity; boolean paid; String customer; } -> Instance size: 32 bytes
|
||||
=== java.lang.Long and java.lang.Integer (boxed values) -> Instance size: 24 bytes
|
||||
=== java.lang.Long and java.lang.Integer (boxed values) -> Instance size: 16 bytes
|
||||
=== int[3] -> Instance size: 32 bytes
|
||||
1,000,000 boxed Integer values in an ArrayList : 20,861,992 bytes
|
||||
1,000,000 boxed Long values in an ArrayList : 28,861,992 bytes
|
||||
1,000,000 Point objects in an ArrayList : 28,861,992 bytes
|
||||
--- 11-headers-jdk27
|
||||
=== java.lang.Object -> Instance size: 8 bytes
|
||||
=== Point { int x; int y; } -> Instance size: 16 bytes
|
||||
=== Order { long id; int quantity; boolean paid; String customer; } -> Instance size: 32 bytes
|
||||
=== java.lang.Long and java.lang.Integer (boxed values) -> Instance size: 16 bytes
|
||||
=== java.lang.Long and java.lang.Integer (boxed values) -> Instance size: 16 bytes
|
||||
=== int[3] -> Instance size: 24 bytes
|
||||
1,000,000 boxed Integer values in an ArrayList : 20,861,984 bytes
|
||||
1,000,000 boxed Long values in an ArrayList : 20,861,984 bytes
|
||||
1,000,000 Point objects in an ArrayList : 20,861,984 bytes
|
||||
--- 12-headers-jdk27-opt-out
|
||||
=== java.lang.Object -> Instance size: 16 bytes
|
||||
=== Point { int x; int y; } -> Instance size: 24 bytes
|
||||
=== Order { long id; int quantity; boolean paid; String customer; } -> Instance size: 32 bytes
|
||||
=== java.lang.Long and java.lang.Integer (boxed values) -> Instance size: 24 bytes
|
||||
=== java.lang.Long and java.lang.Integer (boxed values) -> Instance size: 16 bytes
|
||||
=== int[3] -> Instance size: 32 bytes
|
||||
1,000,000 boxed Integer values in an ArrayList : 20,861,992 bytes
|
||||
1,000,000 boxed Long values in an ArrayList : 28,861,992 bytes
|
||||
1,000,000 Point objects in an ArrayList : 28,861,992 bytes
|
||||
Reference in New Issue
Block a user