Enhancement: Expose thread count to setup/teardown methods
Aleksey Shipilev
aleksey.shipilev at oracle.com
Wed Oct 14 19:26:19 UTC 2015
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