27:e5098c3301fb
Anton Shestakov <engored@ya.ru>, Wed, 27 May 2015 18:57:30 +0800
bench: include node in idx_results_limits (local limits speed-up)

next change 28:f834362f7f83
previous change 21:0a913a93173d

templates/results.html

Permissions: -rw-r--r--

Other formats: Feeds:
<html>
<head>
<meta charset="utf-8">
<title>hgperfcheck{% if changesets %} (rev {{ changesets[0]['rev'] }} and earlier){% end %}</title>
<style type="text/css">
* {
font-family: monospace;
}
table {
border-spacing: 0;
}
tbody tr:hover {
background-color: silver;
}
td {
white-space: nowrap;
padding: 1px 5px;
}
td.hint {
width: 100%;
position: relative;
}
td.hint div {
position: absolute;
text-overflow: ellipsis;
overflow: hidden;
top: 1px;
left: 5px;
right: 5px;
}
</style>
</head>
<body>
<header>
<a href="/results.html">back to tip</a>
{% set prevrev = changesets[0]['rev'] + 120 if changesets else None %}
{% if prevrev %}<a href="?rev=rev({{ prevrev }})">prev page</a>{% end %}
{% set nextrev = changesets[-1]['rev'] - 1 if changesets else None %}
{% if nextrev > -1 %}<a href="?rev=rev({{ nextrev }})">next page</a>{% end %}
<span style="color: #777;">
hover things for a tooltip; red means slowest ever, green means fastest
ever; first color and time means without .hg/cache, second means with
.hg/cache.
</span>
</header>
<table>
<thead>
<tr>
<td>rev</td>
<td>node</td>
<td title="merge">M</td>
<td>branch</td>
<td>tags</td>
<td>user</td>
<td>desc</td>
{% for mark, desc in marks.items() %}
<td title="{{ desc }}">{{ mark }}</td>
{% end %}
</tr>
</thead>
<tbody>
{% for cset in changesets %}
<tr>
<td>{{ cset['rev'] }}</td>
<td><a href="http://selenic.com/hg/rev/{{ cset['node'] }}">{{ cset['node'][:12] }}<a/></td>
<td>{{ 'M' if len(cset['parents']) > 1 else '' }}</td>
<td>{{ cset['branch'] }}</td>
<td>{{ ', '.join(cset['tags']) }}</td>
<td title="{{ cset['user'] }}">{{ cset['user'].partition(' <')[0] }}</td>
<td class="hint"><div title="{{ cset['desc'] }}">{{ cset['desc'].partition('\n')[0] }}</div></td>
{% for mark in marks %}
{% set result = results.get(cset['node'], {}) %}
{% set v1, c1, v2, c2 = result.get(mark, (None, None, None, None)) %}
<td>
<span style="{% if c1 is not None %}background-color: rgb{{ str(c1) }};{% end %}">&nbsp;</span>{#
#}<span style="{% if c2 is not None %}background-color: rgb{{ str(c2) }};{% end %}">&nbsp;</span>
<span title="{{ v1 }} without .hg/cache">{{ '{:.2f}s'.format(v1) if v1 is not None else '-' }}</span>{#
#}/{#
#}<span title="{{ v2 }} with .hg/cache">{{ '{:.2f}s'.format(v2) if v2 is not None else '-' }}</span>
</td>
{% end %}
</tr>
{% end %}
</tbody>
</table>
<footer>
<a href="/results.html">back to tip</a>
{% if prevrev %}<a href="?rev=rev({{ prevrev }})">prev page</a>{% end %}
{% if nextrev > -1 %}<a href="?rev=rev({{ nextrev }})">next page</a>{% end %}
</footer>
</body>
</html>