JFR unit test framework allow to have a performance regression test by using JFR events.

Github: https://github.com/moditect/jfrunit

Article about jfrUnit framework.
https://www.morling.dev/blog/towards-continuous-performance-regression-testing/