jmh-gradle-plugin
jmh-gradle-plugin copied to clipboard
Custom runner?
Hi there
I am trying to convert a project that uses sbt into gradle and on "sbt land" you can run custom runners (https://github.com/ktoso/sbt-jmh#advanced-using-custom-runners) is there anything like this I can do from within this plugin?
Thanks
Cheers
Nope. There is nothing like that here.
custom runners appear to be an extension of the sbt-jmh plugin. From the surface they are another way to invoke JMH's Main, and perhaps post process results. I wonder, does it make sense to add this feature to the plugin, what do you think @vyazelenko ?
@aalmiray it might be interesting to add. Not sure though it's worth doing. If someone needs to use JMH API directly it can be done simply by using JMH plugin to generate jar and invoke custom class. That's exactly what we used to do in our project. But now we just configure everything inside jmh
block.
What if each benchmark uses different options? It seems better if this plugin just runs the main method of the benchmark and save results as ClassName-result.txt. In the current state how would I do if I want to attach a profiler to one benchmark but not the others?