Programming · 16 min read
Microbenchmarking Java with JMH in the age of new JEPs
How to measure Java code correctly with JMH, and how virtual threads, compact object headers, AOT caches, the Vector API and lazy constants change what a benchmark actually tells you.