CalvinKirs opened a new pull request, #17894:
URL: https://github.com/apache/doris/pull/17894
Writing the benchmark itself is not hard, but getting it right is.
Thankfully, the JMH suite provides helpful annotations and features to mitigate
most of them. To get started, you need to make your benchmark extend the
AbstractMicrobenchmark, which makes sure the test gets run through JUnit and
configures some defaults:
@BenchmarkMode({Mode.Throughput})
public class LinkedArrayBenchmark extends AbstractMicrobenchmark {
}
For most benchmark tests, you can write it as a normal JUnit.
We could also choose Customizing Runtime Conditions.
At present, you can run all JMH Tests by running the jar directly after
packaging.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]