In JMH(Java Microbenchmark Harness), we can use
@BenchmarkMode(Mode.AverageTime)
@Warmup(iterations = 10)
@Measurement(iterations = 10)
to evaluate the average time of an execution after JVM warms up.
Also we can use
@BenchmarkMode(Mode.SingleShotTime)
@Measurement(iterations = 1)
to estimate the cold start time of an execution. But this only executes the benchmark once, which may introduce bias. So is there any method to evaluate the average time of the cold start in JMH?