Package org.radargun.stats.representation

Examples of org.radargun.stats.representation.Percentile


         return (T) new MeanAndDev(histogram.getMean(), histogram.getStdDeviation());
      } else if (clazz == Throughput.class) {
         return (T) Throughput.compute(histogram.getTotalCount(), histogram.getMean(), args);
      } else if (clazz == Percentile.class) {
         double percentile = Percentile.getPercentile(args);
         return (T) new Percentile(histogram.getValueAtPercentile(percentile));
      } else if (clazz == Histogram.class) {
         int buckets = Histogram.getBuckets(args);
         double percentile = Histogram.getPercentile(args);
         AbstractHistogram.AllValues values = histogram.allValues();
         ArrayList<Long> ranges = new ArrayList<>();
View Full Code Here


      writeTD(defaultOutcome == null ? "&nbsp;" : String.valueOf(defaultOutcome.errors), rowStyle);
      writeTD(meanAndDev == null ? "&nbsp;" : formatTime(meanAndDev.mean), rowStyle);
      writeTD(meanAndDev == null ? "&nbsp;" : formatTime(meanAndDev.dev), rowStyle);
      if (hasPercentiles) {
         for (double percentile : configuration.percentiles) {
            Percentile p = operationStats == null ? null : operationStats.getRepresentation(Percentile.class, percentile);
            writeTD(p == null ? "&nbsp;" : formatTime(p.responseTimeMax), rowStyle);
         }
      }
      writeTD(throughput == null ? "&nbsp;" : String.format("%.0f&nbsp;reqs/s", throughput.actual), rowStyle);
      if (hasHistograms) {
View Full Code Here

         return (T) Throughput.compute(requests, (double) responseTimeSum / requests, args);
      } else if (clazz == Percentile.class) {
         double percentile = Percentile.getPercentile(args);
         int size = full ? responseTimes.length : pos;
         Arrays.sort(responseTimes, 0, size);
         return (T) new Percentile(responseTimes[Math.min((int) Math.ceil(percentile / 100d * size), size - 1)]);
      } else if (clazz == Histogram.class) {
         return (T) getHistogram(args);
      } else {
         return null;
      }
View Full Code Here

TOP

Related Classes of org.radargun.stats.representation.Percentile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.