aboutsummaryrefslogtreecommitdiff
path: root/src/html/summary_report.html.tt
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/summary_report.html.tt')
-rwxr-xr-xsrc/html/summary_report.html.tt109
1 files changed, 109 insertions, 0 deletions
diff --git a/src/html/summary_report.html.tt b/src/html/summary_report.html.tt
new file mode 100755
index 0000000..4f36f62
--- /dev/null
+++ b/src/html/summary_report.html.tt
@@ -0,0 +1,109 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>{group_id} Summary - Criterion.rs</title>
+ <style type="text/css">
+ body \{
+ font: 14px Helvetica Neue;
+ text-rendering: optimizelegibility;
+ }
+
+ .body \{
+ width: 960px;
+ margin: auto;
+ }
+
+ a:link \{
+ color: #1F78B4;
+ text-decoration: none;
+ }
+
+ h2 \{
+ font-size: 36px;
+ font-weight: 300;
+ }
+
+ h3 \{
+ font-size: 24px;
+ font-weight: 300;
+ }
+
+ #footer \{
+ height: 40px;
+ background: #888;
+ color: white;
+ font-size: larger;
+ font-weight: 300;
+ }
+
+ #footer a \{
+ color: white;
+ text-decoration: underline;
+ }
+
+ #footer p \{
+ text-align: center
+ }
+ </style>
+</head>
+
+<body>
+ <div class="body">
+ <h2>{group_id}</h2>
+ {{- if violin_plot }}
+ <h3>Violin Plot</h3>
+ <a href="violin.svg">
+ <img src="violin.svg" alt="Violin Plot" />
+ </a>
+ <p>This chart shows the relationship between function/parameter and iteration time. The thickness of the shaded
+ region indicates the probability that a measurement of the given function/parameter would take a particular
+ length of time.</p>
+ {{- endif }}
+ {{- if line_chart }}
+ <h3>Line Chart</h3>
+ <img src="lines.svg" alt="Line Chart" />
+ <p>This chart shows the mean measured time for each function as the input (or the size of the input) increases.</p>
+ {{- endif }}
+ {{- for bench in benchmarks }}
+ <section class="plots">
+ <a href="{bench.path}/report/index.html">
+ <h4>{bench.name}</h4>
+ </a>
+ <table width="100%">
+ <tbody>
+ <tr>
+ <td>
+ <a href="{bench.path}/report/pdf.svg">
+ <img src="{bench.path}/report/pdf_small.svg" alt="PDF of Slope" width="{thumbnail_width}"
+ height="{thumbnail_height}" />
+ </a>
+ </td>
+ <td>
+ {{- if bench.regression_exists }}
+ <a href="{bench.path}/report/regression.svg">
+ <img src="{bench.path}/report/regression_small.svg" alt="Regression" width="{thumbnail_width}"
+ height="{thumbnail_height}" />
+ </a>
+ {{- else }}
+ <a href="{bench.path}/report/iteration_times.svg">
+ <img src="{bench.path}/report/iteration_times_small.svg" alt="Iteration Times" width="{thumbnail_width}"
+ height="{thumbnail_height}" />
+ </a>
+ {{- endif }}
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </section>
+ {{- endfor }}
+ </div>
+ <div id="footer">
+ <p>This report was generated by
+ <a href="https://github.com/bheisler/criterion.rs">Criterion.rs</a>, a statistics-driven benchmarking
+ library in Rust.</p>
+ </div>
+</body>
+
+</html> \ No newline at end of file