Performance
36 — Performance & Build Tools
Previous: 35 Serialization · Next: 37 Interview Prep
▶️ pkg19performance/ · build/maven/ · build/gradle/
Performance toolkit
| Tool | Purpose |
|---|---|
| JFR (Flight Recorder) | Low-overhead production profiling |
| JMH | Reliable microbenchmarks |
| GC logs | -Xlog:gc* — allocation and pause analysis |
| GraalVM native-image | Fast startup, smaller footprint |
1# Run JMH benchmark in pkg19performance/jmh-demo2mvn package -f pkg19performance/jmh-demo/pom.xmlResilience patterns (hand-coded)
pkg18resiliencepatterns/ — no framework required:
- Circuit breaker
- Retry with backoff
- Bulkhead
- Rate limiter
Build tools
| Tool | File | Learn |
|---|---|---|
| Maven | build/maven/simple-app |
pom.xml, lifecycle, dependencies |
| Maven multi-module | build/maven/multi-module |
Parent POM, modules |
| Gradle | build/gradle/simple-app |
build.gradle.kts |
1mvn test -f build/maven/simple-app/pom.xmlGuides → Build Tools · 19 Performance
Next → 37 Interview Prep