Search in sources :

Example 1 with BenchmarkConsoleReport

use of com.codingchili.core.benchmarking.reporting.BenchmarkConsoleReport in project chili-core by codingchili.

the class BenchmarkConsoleReportTest method setUp.

@Before
public void setUp() {
    super.setUp();
    report = new BenchmarkConsoleReport(groups);
}
Also used : BenchmarkConsoleReport(com.codingchili.core.benchmarking.reporting.BenchmarkConsoleReport) Before(org.junit.Before)

Example 2 with BenchmarkConsoleReport

use of com.codingchili.core.benchmarking.reporting.BenchmarkConsoleReport in project chili-core by codingchili.

the class CoreBenchmarkSuite method createReport.

private void createReport(Promise<CommandResult> future, List<BenchmarkGroup> result, CommandExecutor executor) {
    Optional<String> template = executor.getProperty(PARAM_TEMPLATE);
    BenchmarkReport report;
    if (executor.hasProperty(PARAM_HTML)) {
        report = new BenchmarkHTMLReport(result);
    } else {
        report = new BenchmarkConsoleReport(result);
    }
    template.ifPresent(report::template);
    report.display();
    future.complete(LauncherCommandResult.SHUTDOWN);
}
Also used : BenchmarkHTMLReport(com.codingchili.core.benchmarking.reporting.BenchmarkHTMLReport) BenchmarkConsoleReport(com.codingchili.core.benchmarking.reporting.BenchmarkConsoleReport)

Aggregations

BenchmarkConsoleReport (com.codingchili.core.benchmarking.reporting.BenchmarkConsoleReport)2 BenchmarkHTMLReport (com.codingchili.core.benchmarking.reporting.BenchmarkHTMLReport)1 Before (org.junit.Before)1