Skip to content

Commit

Permalink
Tweak z-score UI
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Jun 7, 2021
1 parent cbf1522 commit a711b48
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 33 deletions.
25 changes: 7 additions & 18 deletions conbench/templates/compare-entity.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,14 @@
<caption>{% include 'units-tooltip.html' %}</caption>
<thead>
<tr>
<th width="25%" scope="col">Change</th>
<th width="25%" scope="col">Z-Score</th>
<th width="25%" scope="col">Baseline</th>
<th width="25%" scope="col">Contender</th>
<th width="25%" scope="col">Change</th>
</tr>
</thead>
<tbody>
{% for c in comparisons %}
<tr>
<td>{{ c.baseline }}</td>
<td>{{ c.contender }}</td>
<td>
{{ c.change }}
{% if c.regression %}
<span class="glyphicon glyphicon-arrow-down"></span></b>
{% endif %}
{% if c.improvement %}
<span class="glyphicon glyphicon-arrow-up"></span></b>
{% endif %}
</td>
</tr>
<tr>
<td>
{{ c.baseline_z_score }} z
Expand All @@ -70,15 +58,16 @@
{% endif %}
</td>
<td>
{{ c.contender_z_score }} z
{% if c.contender_z_regression %}
{{ c.change }}
{% if c.regression %}
<span class="glyphicon glyphicon-arrow-down"></span></b>
{% endif %}
{% if c.contender_z_improvement %}
{% if c.improvement %}
<span class="glyphicon glyphicon-arrow-up"></span></b>
{% endif %}
</td>
<td>&nbsp;</td>
<td>{{ c.baseline }}</td>
<td>{{ c.contender }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down
25 changes: 10 additions & 15 deletions conbench/templates/compare-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,25 @@
</caption>
<thead>
<tr>
<th scope="col">Z-Score</th>
<th scope="col">Change</th>
<th scope="col">Batch</th>
<th scope="col">Benchmark</th>
<th scope="col">Baseline Z-Score</th>
<th scope="col">Contender Z-Score</th>
<th scope="col">Baseline</th>
<th scope="col">Contender</th>
</tr>
</thead>
<tbody>
{% for c in comparisons %}
<tr>
{% if c.contender is none %}
<td>---</td>
{% else %}
<td>{{ c.contender_z_score }}</td>
{% endif %}

<td>{{ c.change }}</td>

<td>
{% if type == "batch" %}
<div>{{ c.batch }}</div>
Expand All @@ -86,6 +92,7 @@
{% endif %}
{% endif %}
</td>

<td>
{% if c.contender is not none and c.baseline is not none %}
<a href="{{ c.compare_benchmarks_url }}">
Expand All @@ -96,18 +103,6 @@
{% endif %}
</td>

{% if c.baseline is none %}
<td>---</td>
{% else %}
<td>{{ c.baseline_z_score }}</td>
{% endif %}

{% if c.contender is none %}
<td>---</td>
{% else %}
<td>{{ c.contender_z_score }}</td>
{% endif %}

{% if c.baseline is none %}
<td>---</td>
{% else %}
Expand All @@ -134,7 +129,7 @@
var table = $('#benchmarks').dataTable( {
"responsive": true,
"order": [[0, 'asc']],
"columnDefs": [{ "orderable": false, "targets": [5, 6] }]
"columnDefs": [{ "orderable": false, "targets": [4, 5] }]
} );
new $.fn.dataTable.FixedHeader( table );

Expand Down

0 comments on commit a711b48

Please sign in to comment.