Package org.radargun.stats.representation

Examples of org.radargun.stats.representation.MeanAndDev


      Throughput throughput = os.getRepresentation(Throughput.class, threadCount, TimeUnit.MILLISECONDS.toNanos(summary.getEnd() - summary.getBegin()));
      if (throughput != null) {
         rowData.put(operationName + ".TheoreticalThroughput", String.valueOf(throughput.theoretical));
         rowData.put(operationName + ".ActualThroughput", String.valueOf(throughput.actual));
      }
      MeanAndDev meanAndDev = os.getRepresentation(MeanAndDev.class);
      if (meanAndDev != null) {
         rowData.put(operationName + ".ResponseTimeMean", String.valueOf(meanAndDev.mean));
         rowData.put(operationName + ".ResponseTimeDeviation", String.valueOf(meanAndDev.dev));
      }
   }
View Full Code Here


   public <T> T getRepresentation(Class<T> clazz, Object... args) {
      AbstractHistogram histogram = getHistogram();
      if (clazz == DefaultOutcome.class) {
         return (T) new DefaultOutcome(histogram.getTotalCount(), errors, histogram.getMean(), histogram.getMaxValue());
      } else if (clazz == MeanAndDev.class) {
         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));
View Full Code Here

               subCategoryNumeric = entry.getKey().getCluster().getSize();
               subCategoryValue = String.format("Size %.0f", subCategoryNumeric);
            }
            switch (statisticType) {
               case MEAN_AND_DEV: {
                  MeanAndDev meanAndDev = operationStats.getRepresentation(MeanAndDev.class);
                  if (meanAndDev == null) continue;
                  chart.addValue(toMillis(meanAndDev.mean), toMillis(meanAndDev.dev), categoryName, subCategoryNumeric, subCategoryValue);
                  break;
               }
               case ACTUAL_THROUGHPUT: {
View Full Code Here

   private void writeRepresentations(OperationStats operationStats, String operation, int cluster, int iteration, String node,
                                     int threads, long period, boolean hasPercentiles, boolean hasHistograms, boolean gray, boolean suspect) {
      DefaultOutcome defaultOutcome = operationStats == null ? null : operationStats.getRepresentation(DefaultOutcome.class);
      Throughput throughput = operationStats == null ? null : operationStats.getRepresentation(Throughput.class, threads, period);
      MeanAndDev meanAndDev = operationStats == null ? null : operationStats.getRepresentation(MeanAndDev.class);
      Histogram histogram = operationStats == null ? null : operationStats.getRepresentation(Histogram.class, configuration.histogramBuckets, configuration.histogramPercentile);

      String rowStyle = suspect ? "background-color: #FFBBBB; " : (gray ? "background-color: #F0F0F0; " : "");
      rowStyle += "text-align: right; ";
View Full Code Here

      return new BoxAndWhiskers(responseTimeMean + INVERSE_NORMAL_95 * stddev, responseTimeMean + INVERSE_NORMAL_50 * stddev,
            responseTimeMean, responseTimeMean - INVERSE_NORMAL_50 * stddev, responseTimeMean - INVERSE_NORMAL_95 * stddev);
   }

   public MeanAndDev getMeanAndDev() {
      if (requests < 2) return new MeanAndDev(responseTimeMean, 0);
      double stddev = Math.sqrt(responseTimeM2 / (double) (requests - 1));
      return new MeanAndDev(responseTimeMean, stddev);
   }
View Full Code Here

TOP

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

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.