Possibility to run JMH benchmarks without JAR build#4057
Possibility to run JMH benchmarks without JAR build#4057dondonz merged 1 commit intographql-java:masterfrom
Conversation
It is very handy to start a benchmark directly from within IntelliJ.
|
Thanks for reporting and fixing! Legend |
|
Ahh this is a gradle secret source. I too also got this (while @andimarek didnt on his IDEA) and I could never work out why I could not run JMHs in IDEA any more ( I used to be able to) Thanks |
|
@dfa1 @bbakerman @dondonz sorry, but I don't think this is the right change: i explicitly removed the jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.37' to make the setup work without having continuous build errors. @dfa1 @bbakerman you have the jmh idea plugin installed? With it you should be able to run it without any main/other setup. |
|
@andimarek hi, I tried with and without the JMH plugin. At work, we are using this setup with maven without any special plugin too and it works nicely with recent IDEA (2025.x) |
|
I downloaded the JMH plugin, and got the same error as @dfa1 without this PR's change. When I checked out this PR, the problem went away I didn't know about the build issue, let's check it out |
|
I also have the JMH plugin installed and I cant run them. I also tried it without the JMH plugin and I cant run them via |
It is very handy to start a benchmark directly from within IntelliJ:

Without this configuration, I get the following error "Unable to find the resource: /META-INF/BenchmarkList"
@bbakerman @andimarek @dondonz