Enhancement: Expose thread count to setup/teardown methods

Nitsan Wakart nitsanw at yahoo.com
Wed Oct 14 20:26:20 UTC 2015


Indeed it does, I missed it.
Thanks,
Nitsan



> On 14 Oct 2015, at 21:26, Aleksey Shipilev <aleksey.shipilev at oracle.com> wrote:
> 
>> On 14.10.2015 22:16, Nitsan Wakart wrote:
>> Hi,I have come across this use case a few times now so perhaps a
>> feature to cover it is worth while. I need the benchmark to construct
>> state according to the number of threads allocated to it. At the
>> moment I end up having a property and duplicating the number of
>> threads to it, e.g.: '-t 10 -p threads=10'Thanks,Nitsan
> 
> Doesn't ThreadParams cover your need? If not, that's an extension point.
> 
> http://hg.openjdk.java.net/code-tools/jmh/file/bbf0d4be9468/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_31_InfraParams.java
> 
> 
> Thanks,
> -Aleksey
> 


More information about the jmh-dev mailing list