print results with percentile

WANG Hui Hui.WANG at murex.com
Fri Sep 4 08:48:51 UTC 2015


Thanks a lot Aleksey for your prompt reply.

One more question please :

It's told that when measuring latency, it's better to check the percentile in addition to the averages. 

What are reasons that JMH is not enabling percentile by default ?  Is it due to the overhead of recording percentiles ?

-----Original Message-----
From: Aleksey Shipilev [mailto:aleksey.shipilev at oracle.com] 
Sent: vendredi 4 septembre 2015 10:38
To: WANG Hui; jmh-dev at openjdk.java.net
Subject: Re: print results with percentile

On 09/04/2015 10:55 AM, WANG Hui wrote:
> I'm wondering how to configure a test to print results with 
> percentiles.
> 
> Could you please help ?

Most BenchmarkModes do not record individual timings, so percentiles are not available here. Use SingleShot or SampleTime modes to get percentiles, see
 http://hg.openjdk.java.net/code-tools/jmh/file/0879b862a1a3/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_02_BenchmarkModes.java#l99

-Aleksey

*******************************

This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.



More information about the jmh-dev mailing list