January 2018
Intermediate to advanced
350 pages
9h 7m
English
There is no official JUnit integration of JMH. In spite of that, it is not that hard to do it yourself. There are lots of possible designs, but in the context of this book we will do the following:
Structurally, a microbenchmark test using this structure will look like this:
@RunWith(JMHRunner.class)public class QuoteMicrobenchmarkTest { @ExpectedPerformances(score = 2668993660.) public ...