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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org