diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-12-25 13:06:49 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-12-26 16:44:58 +0100 |
commit | f097c61b1c1435d4849a33930cb75332dc7158dc (patch) | |
tree | f7632248ce5bb584ac11fe9de64dfba7e67a366f /obbenchlib/templates | |
parent | da859589e5295e5d050abff73773c006cf81ead1 (diff) | |
download | obnam-benchmarks-f097c61b1c1435d4849a33930cb75332dc7158dc.tar.gz |
Rewrite obbench, adding yarns and Debian packaging
Diffstat (limited to 'obbenchlib/templates')
-rw-r--r-- | obbenchlib/templates/benchmark.j2 | 38 | ||||
-rw-r--r-- | obbenchlib/templates/index.j2 | 28 |
2 files changed, 66 insertions, 0 deletions
diff --git a/obbenchlib/templates/benchmark.j2 b/obbenchlib/templates/benchmark.j2 new file mode 100644 index 0000000..1a723a1 --- /dev/null +++ b/obbenchlib/templates/benchmark.j2 @@ -0,0 +1,38 @@ +<html> + <head> + <title>Obnam benchmark: {{ benchmark_name }}</title> + <link rel="stylesheet" href="obbench.css" type="text/css" /> + </head> + <body> + <h1>Obnam benchmark: {{ benchmark_name }}</h1> + + <p><a href="index.html">Front page</a></p> + + {{ description|safe }} + + <table> + <tr> + <th>date</th> + <th>commit</th> + {% for step_name in step_names %} + <th>{{ step_name }}</th> + {% endfor %} + <th>total</th> + </tr> + {% for row in table_rows %} + <tr> + <td>{{ row.commit_date }}</td> + <td>{{ '%.7s'|format(row.commit_id) }}</td> + {% for step in row.steps %} + <td> + <a href="{{ step.filename_txt }}"> + {{ '%.1f'|format(step.duration) }} + </a> + </td> + {% endfor %} + <td>{{ '%.1f'|format(row.total) }}</td> + </tr> + {% endfor %} + </table> + </body> +</html> diff --git a/obbenchlib/templates/index.j2 b/obbenchlib/templates/index.j2 new file mode 100644 index 0000000..3212abb --- /dev/null +++ b/obbenchlib/templates/index.j2 @@ -0,0 +1,28 @@ +<html> + <head> + <title>Obnam benchmarks</title> + <link rel="stylesheet" href="obbench.css" type="text/css" /> + </head> + <body> + <h1>Obnam benchmarks</h1> + {{ description|safe }} + <table> + <tr> + <th>date</th> + <th>commit</th> + {% for name in benchmark_names %} + <th>{{ name }}</th> + {% endfor %} + </tr> + {% for row in results_table %} + <tr> + <td>{{ row.commit_date }}</td> + <td>{{ '%.7s'|format(row.commit_id) }}</td> + {% for name in benchmark_names %} + <td><a href="{{ name }}.html">{{ '%.1f'|format(row[name]) }}</a></td> + {% endfor %} + </tr> + {% endfor %} + </table> + </body> +</html> |