Time-based measures
Time-based microbenchmarks work as the opposing counter to throughput measurements. These measures test out the time it takes for the required operation. This is useful if you need to test out the performance of different code samples that produce the same output. The time measure is essential in making the final choice to implement in the finished application product.
There are several measures that involve time-based statistical results. Here, we present the different measures that come under this category. The first is the use of average time, which represents the average time it takes for one iteration to complete.
The JMH also produces a Score Error report with the output. This error is presented at 50 percent confidence ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access