summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--obbenchlib/htmlgen.py2
-rw-r--r--obbenchlib/templates/benchmark.j23
2 files changed, 5 insertions, 0 deletions
diff --git a/obbenchlib/htmlgen.py b/obbenchlib/htmlgen.py
index 2b85f6b..1662efc 100644
--- a/obbenchlib/htmlgen.py
+++ b/obbenchlib/htmlgen.py
@@ -153,6 +153,8 @@ class BenchmarkPage(HtmlPage):
benchmark.get('description', '')),
'table_rows': table_rows,
'step_names': self.get_step_names(benchmark),
+ 'spec': yaml.safe_dump(
+ benchmark, indent=4, default_flow_style=False)
}
return (
diff --git a/obbenchlib/templates/benchmark.j2 b/obbenchlib/templates/benchmark.j2
index 1a723a1..de5c10a 100644
--- a/obbenchlib/templates/benchmark.j2
+++ b/obbenchlib/templates/benchmark.j2
@@ -34,5 +34,8 @@
</tr>
{% endfor %}
</table>
+
+ <h2>Spec file for this benchmark</h2>
+ <p><pre>{{ spec }}</pre></p>
</body>
</html>