Ukur sebelum mengoptimalkan: profiling CPU dan memori, benchmark JMH, tuning GC, optimasi collection dan stream, hingga regresi.