Participate in the State of Distributed Systems Survey | Take Survey

Continuous Performance Regression Testing with JfrUnit

Functional unit and integration tests are a common practice to detect and prevent regressions within a software component or application’s behavior. Things look different, though, when it comes to performance-related aspects: how to identify an application is slower than it used to be? How to spot higher memory consumption than before? How to find out about sub-optimal SQL queries that sneaked in? Any performance tests based on metrics like wall-clock time or through-put are not portable. They are subject to a specific execution environment such as a developer laptop, CI, or production-like environment.

Welcome JfrUnit: based on the JDK Flight Recorder (JFR), it allows you to implement assertions based on all kinds of JFR events emitted by the JVM or your application. JfrUnit makes it very easy to identify potential performance issues by asserting metrics that may impact your application’s performance, like an increased object allocation rate, retrieval of redundant data from the database, loading of unneeded classes, and much more.

Come and join us for this code-centric session to learn about: * Using JDK Flight Recorder and JfrUnit for implementing performance regression tests * Emitting JFR events from 3rd party libraries using JMC Agent * Analyzing performance regressions in JDK Mission Control

21 Minutes
Share on facebook
Share on twitter
Share on email
Share on linkedin
Share on facebook
Share on twitter
Share on email
Share on linkedin
Gunnar Morling

Gunnar Morling, Principal Software Engineer at Red Hat

Gunnar Morling is a software engineer and open-source enthusiast by heart. He is leading the Debezium project, a platform for change data capture (CDC). He is a Java Champion, the spec lead for Bean Validation 2.0 (JSR 380) and has founded multiple open source projects such as Deptective and MapStruct. Prior to joining Red Hat, Gunnar worked on a wide range of Java EE projects in the logistics and retail industries. He's based in Hamburg, Germany.

P99 CONF OCT. 6-7, 2021

REGISTER FOR YOUR FREE TICKET