Package com.griddynamics.gridkit.coherence.patterns.benchmark.stats

Examples of com.griddynamics.gridkit.coherence.patterns.benchmark.stats.Accamulator


    dispatcherResult.setExecutionMarksProcessed(getDispatcherResultSise());
  }
 
  public  CommandBenchmarkStats calculateExecutionStatisticsInternal(CommandExecutionMark.CommandExecutionMarkTimeExtractor ex)
  { 
    Accamulator     latency = new Accamulator();
   
    Accamulator    sendTime = new Accamulator();
    Accamulator receiveTime = new Accamulator();
 
    int n = 0;
   
    for (Collection<CommandExecutionMark> l : workersResult)
    {
      for(CommandExecutionMark m : l)
      {
        n++;
     
        sendTime.add(ex.getSendTime(m));
        receiveTime.add(ex.getReceiveTime(m));
       
        latency.add(ex.getReceiveTime(m) - ex.getSendTime(m));
      }
    }
   
    CommandBenchmarkStats res = new CommandBenchmarkStats();
   
    res.totalTime  = (receiveTime.getMax() - sendTime.getMin()) / TimeUnit.SECONDS.toMillis(1);
    res.throughput = n / res.totalTime;
   
    res.averageLatency  = latency.getMean();
    res.latencyVariance = latency.getVariance();
    res.minLatency      = latency.getMin();
View Full Code Here


    dispatcherResult.setExecutionMarksProcessed(getDispatcherResultSise());
  }
 
  protected MessageBenchmarkStats calculateExecutionStatisticsInternal(MessageExecutionMark.MessageExecutionMarkTimeExtractor te)
  {
    Accamulator     latency = new Accamulator();
   
    Accamulator    sendTime = new Accamulator();
    Accamulator receiveTime = new Accamulator();
   
    int n = 0;
   
    for (Collection<MessageExecutionMark> l : workersResult)
    {
      for(MessageExecutionMark m : l)
      {
        n++;
       
        sendTime.add(te.getSendTime(m));
        receiveTime.add(te.getReceiveTime(m));
       
        latency.add(te.getReceiveTime(m) - te.getSendTime(m));
      }
    }
   
    MessageBenchmarkStats res = new MessageBenchmarkStats();
   
    res.totalTime  = (receiveTime.getMax() - sendTime.getMin()) / TimeUnit.SECONDS.toMillis(1);
    res.throughput = n / res.totalTime;
   
    res.averageLatency  = latency.getMean();
    res.latencyVariance = latency.getVariance();
    res.minLatency      = latency.getMin();
View Full Code Here

    dispatcherResult.setExecutionMarksProcessed(getDispatcherResultSise());
  }
 
  protected FunctorBenchmarkStats calculateExecutionStatisticsInternal(FunctorExecutionMark.FunctorExecutionMarkTimeExtractor te)
  { 
    Accamulator  startTime = new Accamulator();
    Accamulator returnTime = new Accamulator();
   
    Accamulator sumbitLatency = new Accamulator();
    Accamulator returnLatency = new Accamulator();
   
    int n = 0;
   
    for (Collection<FunctorExecutionMark> l : workersResult)
    {
      for(FunctorExecutionMark m : l)
      {
        n++;
       
        startTime.add(te.getSendTime(m));
        returnTime.add(te.getReturnTime(m));
       
        sumbitLatency.add(te.getReceiveTime(m) - te.getSendTime(m));
        returnLatency.add(te.getReturnTime(m) - te.getSendTime(m));
      }
    }
   
    FunctorBenchmarkStats res = new FunctorBenchmarkStats();
   
    res.totalTime  = (returnTime.getMax() - startTime.getMin()) / TimeUnit.SECONDS.toMillis(1);
    res.throughput = n / res.totalTime;
   
    res.averageSumbitLatency = sumbitLatency.getMean();
    res.averageReturnLatency = returnLatency.getMean();
   
    res.sumbitLatencyVariance = sumbitLatency.getVariance();
    res.returnLatencyVariance = returnLatency.getVariance();
   
    res.maxSumbitLatency = sumbitLatency.getMax();
    res.maxReturnLatency = returnLatency.getMax();
   
    res.minSumbitLatency = sumbitLatency.getMin();
    res.minReturnLatency = returnLatency.getMin();
   
    return res;
  }
View Full Code Here

    dispatcherResult.setExecutionMarksProcessed(getDispatcherResultSise());
  }

  protected MessageBenchmarkStats calculateExecutionStatisticsInternal(MessageExecutionMark.MessageExecutionMarkTimeExtractor te)
  {
    Accamulator     latency = new Accamulator();
   
    Accamulator    sendTime = new Accamulator();
    Accamulator receiveTime = new Accamulator();
   
    int n = 0;
   
    for (Collection<MessageExecutionMark> l : workersResult)
    {
      for(MessageExecutionMark m : l)
      {
        n++;
       
        sendTime.add(te.getSendTime(m));
        receiveTime.add(te.getReceiveTime(m));
       
        latency.add(te.getReceiveTime(m) - te.getSendTime(m));
      }
    }
   
    MessageBenchmarkStats res = new MessageBenchmarkStats();
   
    res.totalTime  = (receiveTime.getMax() - sendTime.getMin()) / TimeUnit.SECONDS.toMillis(1);
    res.throughput = n / res.totalTime;
   
    res.averageLatency  = latency.getMean();
    res.latencyVariance = latency.getVariance();
    res.minLatency      = latency.getMin();
View Full Code Here

TOP

Related Classes of com.griddynamics.gridkit.coherence.patterns.benchmark.stats.Accamulator

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.