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);
}
}
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);
}
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());
}
Aggregations