In the previous section, you learned how to run a benchmark test. In this section, we will look at the following configurable options for running our benchmarks:
- Modes
- Time units
In the previous section, you learned how to run a benchmark test. In this section, we will look at the following configurable options for running our benchmarks:
The output of our benchmark results, from the previous section, included a Mode column that had the value of thrpt, which is short for throughput. This is the default mode and there are an additional four modes. All JMH benchmark modes are listed and described as follows:
Mode | Description |
All | Measures all other modes sequentially. |
Average Time | This mode measures the average time for a single benchmark to run. |
Sample Time |
This mode measures the benchmark execution time and includes min and max times. |
Single... |