What Are We Even Measuring?
summary
Practical guidance on writing reliable Java benchmarks: which common benchmarking mistakes to avoid, how to use and interpret JVM diagnostic options, and how to better understand how Java code actually executes (so measurements reflect real behavior). Technologies mentioned include the JVM and Java benchmarking tools/diagnostics.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:07Naive benchmarks problem
- 3:38Why naive benchmarks fail
- 5:27Naive benchmark results
- 8:40JIT basics
- 12:10How streams work
- 16:04Proper tools switch
- 19:58JMH results
- 23:30Strange JMH results
- 25:37Diagnosing JIT with logs
- 33:56C2 slower code
- 38:11Inlining limits and fixes
- 43:52Type profile pollution
- 48:00Practical takeaways
- 50:28JVM options
- 53:02Q&A
