Comparing multiple VMs
Aleksey Shipilev
aleksey.shipilev at oracle.com
Mon Jul 7 12:14:53 UTC 2014
Hi Bernd,
On 07/05/2014 07:05 AM, Bernd Eckenfels wrote:
> With @Fork I can specify the VM args, but not the path. And I am
> missing a @Param-style method to define multiple. Am I missing
> something?
@Fork should really have jvm() parameter for this, glaring omission.
Fixed: http://hg.openjdk.java.net/code-tools/jmh/rev/2f7e02bfeb19
> I know I could do it with the API or run it multiple times on the
> command line, but I would like to avoid having to code to make an
> aggregated result table.
Really?
Collection<RunResult> run = new Runner(opt).run();
PrintWriter pw = new PrintWriter(System.out);
ResultFormat rf =
ResultFormatFactory.getInstance(ResultFormatType.TEXT, pw);
rf.writeOut(run);
Thanks,
-Aleksey.
More information about the jmh-dev
mailing list