Search in sources :

Example 1 with PerfTestResult

use of org.camunda.bpm.qa.performance.engine.framework.PerfTestResult in project camunda-bpm-platform by camunda.

the class ActivityCountAggregator method processResults.

protected void processResults(PerfTestResults results, TabularResultSet tabularResultSet) {
    PerfTestConfiguration configuration = results.getConfiguration();
    List<String> watchActivities = configuration.getWatchActivities();
    for (PerfTestResult passResult : results.getPassResults()) {
        String passTitle = getPassTitle(results.getTestName(), configuration, passResult);
        TabularResultSet result = processPassResult(watchActivities, passResult);
        htmlBuilder.addSection(passTitle, result);
    }
}
Also used : PerfTestConfiguration(org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration) PerfTestResult(org.camunda.bpm.qa.performance.engine.framework.PerfTestResult) TabularResultSet(org.camunda.bpm.qa.performance.engine.framework.aggregate.TabularResultSet)

Example 2 with PerfTestResult

use of org.camunda.bpm.qa.performance.engine.framework.PerfTestResult in project camunda-bpm-platform by camunda.

the class BenchmarkAggregator method processResults.

protected void processResults(PerfTestResults results, TabularResultSet tabularResultSet) {
    List<Object> row = new ArrayList<Object>();
    row.add(results.getTestName());
    for (PerfTestResult passResult : results.getPassResults()) {
        processRow(row, passResult, results);
    }
    tabularResultSet.getResults().add(row);
}
Also used : ArrayList(java.util.ArrayList) PerfTestResult(org.camunda.bpm.qa.performance.engine.framework.PerfTestResult)

Example 3 with PerfTestResult

use of org.camunda.bpm.qa.performance.engine.framework.PerfTestResult in project camunda-bpm-platform by camunda.

the class BenchmarkAggregator method processRow.

protected void processRow(List<Object> row, PerfTestResult passResult, PerfTestResults results) {
    // add duration
    row.add(passResult.getDuration());
    // add throughput per second
    long duration = passResult.getDuration();
    float numberOfRuns = results.getConfiguration().getNumberOfRuns();
    float throughput = (numberOfRuns / duration) * 1000;
    row.add(throughput);
    // add speedup
    float durationForSequential = 0;
    for (PerfTestResult perfTestResult : results.getPassResults()) {
        if (perfTestResult.getNumberOfThreads() == 1) {
            durationForSequential = perfTestResult.getDuration();
        }
    }
    double speedUp = durationForSequential / passResult.getDuration();
    BigDecimal bigDecimalSpeedUp = new BigDecimal(speedUp);
    bigDecimalSpeedUp.setScale(1, BigDecimal.ROUND_HALF_UP);
    row.add(bigDecimalSpeedUp.doubleValue());
}
Also used : PerfTestResult(org.camunda.bpm.qa.performance.engine.framework.PerfTestResult) BigDecimal(java.math.BigDecimal)

Aggregations

PerfTestResult (org.camunda.bpm.qa.performance.engine.framework.PerfTestResult)3 BigDecimal (java.math.BigDecimal)1 ArrayList (java.util.ArrayList)1 PerfTestConfiguration (org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration)1 TabularResultSet (org.camunda.bpm.qa.performance.engine.framework.aggregate.TabularResultSet)1