Thread number aware benchmarks and groups
Dmitry Chuyko
dmitry.chuyko at oracle.com
Thu Nov 14 07:44:25 PST 2013
Hi Nitsan.
I generate code (class with groups and @GMB) from templates using
several machine configurations (N). For example you can use freemarker
maven plugin.
Dmitry
On 11/14/2013 6:54 PM, Nitsan Wakart wrote:
> Hi,
> I'm using JMH to benchmark producer/consumer queues and would like to be able to split the producer consumers into groups such that the size of the 2 groups is the total number of threads. I.e:
> @GenerateMicroBenchmark
>
> @Group("group")
> @Threads(N/2)
> public void offer(){
> ...
> }
> @GenerateMicroBenchmark
>
> @Group("group")
> @Threads(N/2)
> public void poll(){
> ...
> }
> I'm happy to jump in and implement just wanted to check feasibility/road map/objections before I do.
> Is there an alternative people use at the moment to achieve same effect?
> Thanks,
> Nitsan
More information about the jmh-dev
mailing list