Feature inquiry
Aleksey Shipilev
aleksey.shipilev at oracle.com
Tue Sep 17 00:54:09 PDT 2013
Hi Brian,
On 09/17/2013 10:54 AM, Brian Toal wrote:
> Does JMH have a feature similar to Caliper's Parameter concept? I found
> using parameters efficient way to run the same test with a change in a
> single parameter. In JMH if I have to roll almost the same method with a
> slight change to the parameter to test the next interesting value.
That was on the roadmap for long, and we are still debating the
clear-cut way to implement this in the face of @State-s and other
already existing APIs.
> Is there a way to specify a set of thread count's that each eligible test
> for the run will be executed for?
Nope.
I think the answer to both questions _now_ is to use the experimental
Java API, e.g.:
http://hg.openjdk.java.net/code-tools/jmh/file/tip/jmh-api-samples/src/main/java/org/openjdk/jmh/SimpleTest.java
-Aleksey.
More information about the jmh-dev
mailing list