Use my own ResultFormat
Steffen Koehler
skoehler at demandware.com
Wed Jun 24 14:28:37 UTC 2015
Hi Aleksey,
thanks for the quick response.
You're right, I have miss that the Runner.run returns the result collection, that will solve my use case, which is to add the result to a database.
I was focused at the ResultFormat :-)
Thanks
Steffen
-----Original Message-----
From: Aleksey Shipilev [mailto:aleksey.shipilev at oracle.com]
Sent: Mittwoch, 24. Juni 2015 16:15
To: Steffen Koehler; jmh-dev at openjdk.java.net
Subject: Re: Use my own ResultFormat
Hi Steffen,
On 06/24/2015 02:29 PM, Steffen Koehler wrote:
> it's simple to create an own ResultFormat class by implementing
> ResultFormat. But how can I use this class? The OptionBuilder offers
> only the possibility to add an ResultFormatType.
I am trying to understand the use case for having a custom ResultFormat.
Can you describe what you are trying to accomplish?
If you are using API, then the benchmark results are already available from Runner.run call, you can feed them into your own formatter.
If you are using CLI, then you would need some way to make JMH recognize the ResultFormat class, instantiate it, and feed the data there. Our pluggable profilers are like that, we can make ResultFormat that way as well.
Thanks,
-Aleksey
This e-mail message and all attachments transmitted with it may contain privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message, all attachments and all copies and backups thereof.
More information about the jmh-dev
mailing list