Examples of Percentile


Examples of org.radargun.stats.representation.Percentile

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

Examples of org.radargun.stats.representation.Percentile

         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;
      }
TOP
Copyright © 2018 www.massapi.com. 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.