JMH: An Introductory Course on Microbenchmarks
summary
Introduces JMH (Java Microbenchmark Harness) for developers who want to start writing microbenchmarks or deepen their knowledge. Covers basic principles of creating microbenchmarks and the main features and capabilities of JMH.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 2:28Microbenchmarks matter
- 7:25JMH basics setup
- 10:37First JMH benchmark
- 14:10Understanding forks
- 18:44Warmup measurements
- 23:57State constant folding
- 26:48Black holes benchmarks
- 28:35Parameterized tests
- 29:59Multi-threaded benchmarks
- 31:48Profiling with JMH
- 34:59Benchmark hygiene checklist
- 36:22Key takeaways
- 37:44Q&A
