@AxisRange(min = 0, max = 1)
@BenchmarkMethodChart(filePrefix = "benchmark-save")
@BenchmarkHistoryChart(filePrefix ="benchmark-save-history", labelWith = LabelType.RUN_ID, maxRuns = 30)
public class WickBenchSaveTest extends BaseBenchMark{
@Rule
public TestRule benchmarkRun = new BenchmarkRule(new WriterConsumer(),new MySQLConsumer("jdbc:MySQL://localhost:3306/test?user=root"));
@Test
@BenchmarkOptions(
benchmarkRounds = 1000,
warmupRounds = 5,
clock = Clock.NANO_TIME,
concurrency = 100)
public void benchSave() throws Exception {
//test logic
}
@Test
@BenchmarkOptions(
benchmarkRounds = 1000,
warmupRounds = 5,
clock = Clock.NANO_TIME,
concurrency = 100)
public void benchUpdate() throws Exception {
//test logic
}
}
It do generate the report, but there is only one method stats, the benchUpdate method not display.