Single Consumer Multiple Producers Benchmark
Aleksey Shipilev
aleksey.shipilev at oracle.com
Wed Dec 4 09:41:54 PST 2013
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