summaryrefslogtreecommitdiff
path: root/obbenchlib/templates/benchmark.j2
blob: 846af70e818072599e12326b2af110de5371d3d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<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 }}<br>time</th>
        <th>&nbsp;<br>VmRSS</th>
        {% endfor %}
        <th>total<br>time</th>
        <th>max<br>VmRSS</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>
          <span class="links">
            <a href="{{ step.filename_prof }}">prof</a>
          </span>
        </td>
        <td>{{ step.vmrss }}
          <span class="links">
            <a href="{{ step.filename_log }}">log</a>
          </span>
        </td>
        {% endfor %}
        <td>{{ '%.1f'|format(row.total) }}</td>
        <td>{{ '%d'|format(row.vmrss_max) }}</td>
      </tr>
      {% endfor %}
    </table>

    <h2>Spec file for this benchmark</h2>
    <p><pre>{{ spec }}</pre></p>
  </body>
</html>