Thread number aware benchmarks and groups
Nitsan Wakart
nitsanw at yahoo.com
Thu Nov 14 06:54:57 PST 2013
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