Asymmetric confusion

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Aug 6 08:20:19 UTC 2014


Hi,

On 08/05/2014 11:08 PM, eugene rabii wrote:
> And the first important comment starts with this:
> 
> "make two execution groups, each having 4 threads"
> 
> *two*? I can see just one that is called "g".

The key in that example is "Putting this all together, if we want to run
this with 8 threads, the example below means...". Note we talk about 8
total threads spread among 2 execution groups, having 4 threads each.

> So each method that is annotated with @Group is an "execution group"?

No, multiple @Benchmark methods are tied in the execution group, with
threads within the execution group distributed among these benchmarks.

> Sorry if this is a newbie question, but I simply don't get it.

That's OK. Tell me, does this sound more intuitive to you?
 http://hg.openjdk.java.net/code-tools/jmh/file/1eff4c9d1ab0/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_15_Asymmetric.java

-Aleksey.



More information about the jmh-dev mailing list