You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by shaqianqian <sq...@gmail.com> on 2019/07/16 09:48:32 UTC

Calculate "distribution" by HdrHistogram

Hello Team,
I am working on replacing the
"org.apache.commons.math3.stat.descriptive.DescriptiveStatistics" and
"org.apache.jorphan.math.StatCalculator" by "HdrHistogram" and
"LatencyUtils" . I have analysed your PR "
https://github.com/apache/jmeter/pull/380 ".

But I have a question about a method "getDistribution()".

    @Override
    public Map<Number, Number[]> getDistribution() {
        Map<Number, Number[]> result = new HashMap<>();
        histogram.percentiles(5).forEach(p -> {
            result.put(p.getValueIteratedTo(), new Number[] {
p.getValueIteratedTo(), p.getCountAddedInThisIterationStep() } );
        });
        return result;
    }

Why is the value of percentiles 5 when calculating distribution?
It would be nice if you could explain this.
You can have a look at Work In Progress here:

https://github.com/ubikloadpack/jmeter/pull/50


Thanks & Regards.
Qianqian SHA