January 2018
Intermediate to advanced
350 pages
9h 7m
English
An alternative to JMH, which is a bit less advanced but much easier to use, is ContiPerf. You can add it to your project with this dependency:
<dependency> <groupId>org.databene</groupId> <artifactId>contiperf</artifactId> <version>2.3.4</version> <scope>test</scope></dependency>
We will not detail it completely in this book as we spent a lot of time on JMH already. But in a few words, it is based on a JUnit 4 rule. Thus, it can be combined with other rules and sorted thanks to the JUnit RuleChain, which makes it very powerful, with all light EE containers having a JUnit-based testing stack such as TomEE or Meecrowave, for instance.
The very big advantage of ContiPerf is that it is aligned with the JUnit model:
Read now
Unlock full access