Changing order of benchmarks execution/printing
Aleksey Shipilev
aleksey.shipilev at oracle.com
Mon Mar 17 17:42:06 UTC 2014
Hi,
On 03/16/2014 02:04 PM, Leszek Bartkowski wrote:
> I.e. group results not by class+methodName, but just by method name, so I
> can see results of executing the same methods with different implementation
> right next to each other (all those methods are defined in
> AbstractJobExecutorBenchmarker). Is there some way to achieve this?
Sorry, there isn't. The current grouping order (class, method) is there
for the most frequent use case of self-contained benchmarks. Doing
(method, class) will jeopardize the runs when method names are generic
and/or similar.
You can probably emulate what you want by having a single parametrized
benchmark, because parameter groups are the last, e.g. (class, method,
param). @Setup methods can be used to instantiate a particular version
of the class you want to measure based on @Param.
-Aleksey.
More information about the jmh-dev
mailing list