Class BenchmarkHTMLReport
java.lang.Object
com.codingchili.core.benchmarking.reporting.BenchmarkHTMLReport
- All Implemented Interfaces:
BenchmarkReport
Generates a HTML benchmark report with Jade.
-
Constructor Summary
ConstructorDescriptionBenchmarkHTMLReport(BenchmarkGroup result)
Parses the benchmark results of a single benchmark group.BenchmarkHTMLReport(List<BenchmarkGroup> results)
Parses the benchmarking results of a benchmark group. -
Method Summary
Modifier and TypeMethodDescriptiondisplay()
displays the results of the report by opening the browser, printing to terminal or any other means specified by the implementation.saves the results to file.saves the report to file using a generated filename.Sets the jade template to use.
-
Constructor Details
-
BenchmarkHTMLReport
Parses the benchmark results of a single benchmark group.- Parameters:
result
- a benchmark group to create a report for.
-
BenchmarkHTMLReport
Parses the benchmarking results of a benchmark group.- Parameters:
results
- a list of benchmarking groups to create a report for.
-
-
Method Details
-
template
Sets the jade template to use.- Specified by:
template
in interfaceBenchmarkReport
- Parameters:
template
- a path to jade on the classpath or filesystem.- Returns:
- fluent.
-
display
Description copied from interface:BenchmarkReport
displays the results of the report by opening the browser, printing to terminal or any other means specified by the implementation.- Specified by:
display
in interfaceBenchmarkReport
- Returns:
- fluent
-
saveTo
Description copied from interface:BenchmarkReport
saves the results to file.- Specified by:
saveTo
in interfaceBenchmarkReport
- Parameters:
path
- where the report is written- Returns:
- fluent
-
saveToFile
Description copied from interface:BenchmarkReport
saves the report to file using a generated filename.- Specified by:
saveToFile
in interfaceBenchmarkReport
- Returns:
- path to the report file that was saved
-