Single Consumer Multiple Producers Benchmark

Nitsan Wakart nitsanw at yahoo.com
Thu Dec 5 00:34:37 PST 2013


I think being able to use the method name to control the number of threads for a particular method makes sense e.g.:

... -tg offer=4,poll=1




On Wednesday, December 4, 2013 7:42 PM, Aleksey Shipilev <aleksey.shipilev at oracle.com> wrote:
 
On 12/04/2013 09:36 PM, Ron Pressler wrote:
> Basically I want to benchmark the queue for different numbers of 
> producer threads. Say 1, 2, 5, and 10. In each case I’ll need
> exactly one consumer thread.

Yeah, Nitsan is more experinced in doing this with JMH.

> How do you control what is considered the “first” group or the 
> “second” group?

Method names, lexicographically. That opens up the more or less flexible
way to control the order, without contaminating @Group annotation with
indices. We should probably think about accepting the named parameters
into -tg and .threadGroups...


-Aleksey.


More information about the jmh-dev mailing list