Invert command line overriding
Doug Simon
doug.simon at oracle.com
Wed Apr 9 14:38:09 UTC 2014
On Apr 9, 2014, at 9:02 AM, Aleksey Shipilev <aleksey.shipilev at oracle.com> wrote:
> On 04/08/2014 06:14 PM, Doug Simon wrote:
>> For some individual benchmarks in a suite of benchmarks, I need
>> extra warmup iterations. I can specify this with an explicit @Warmup
>> annotation. However, it appears as though the -wi command line
>> option overrides such annotations. Is it possible to somehow make -wi
>> only apply to benchmarks for which there is no explicit @Warmup
>> annotation?
>
> No, the options overriding follow the simple principle: anything you can
> supply later should override anything you supplied before. In this case,
> command line options override the annotations. In this sense, command
> line options provide the final authority on the benchmark execution mode.
Ok, thanks for the explanation.
> I could of course achieve this via separate jmh executions but that
>> will non-trivial changes to our benchmarking infrastructure.
>
> Or, you may use Java API to drive your benchmarks if you need something
> not in line with the default JMH behavior.
Good suggestion - I’ll look into it.
-Doug
More information about the jmh-dev
mailing list