The order in which JMH executes the methods @Benchmarkusually does not matter: the runs are isolated from each other, so the results are independent. But if you still need a specific order, then @Benchmark-s are executed in lexicographic order, therefore, rename your methods in that order.
source
share