jmh-gradle-plugin icon indicating copy to clipboard operation
jmh-gradle-plugin copied to clipboard

Custom runner?

Open Andrea opened this issue 9 years ago • 4 comments

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

Andrea avatar Jan 06 '16 18:01 Andrea

Nope. There is nothing like that here.

vyazelenko avatar Feb 24 '16 17:02 vyazelenko

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 avatar Feb 24 '16 18:02 aalmiray

@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.

vyazelenko avatar Feb 24 '16 20:02 vyazelenko

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?

joelmo avatar Apr 29 '16 12:04 joelmo