55:119a07aacb84
Anton Shestakov <av6@dwimlabs.net>, 2016-05-18
viewer: drop s(econds) from short timings, use .5f for long timings Maybe even 5 digits after the decimal points is too much for our measure process, but let's try and see.

next change 56:2bc880fe68a4
previous change 54:3fb3f68e9627

templates/results.html

Permissions: -rw-r--r--

Other formats: Feeds:
45
45:978c387b91e3 viewer: doctype for html5
Anton Shestakov <av6@dwimlabs.net>
previous changes: 44:51371d1b3578
line | diff
<!DOCTYPE html>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<html>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<head>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<meta charset="utf-8">
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<title>hgperfcheck{% if changesets %} (rev {{ changesets[0]['rev'] }} and earlier){% end %}</title>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<style type="text/css">
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
* {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
font-family: monospace;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
table {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
border-spacing: 0;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
tbody tr:hover {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
background-color: silver;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
td {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
white-space: nowrap;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
padding: 1px 5px;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
td.hint {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
width: 100%;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
position: relative;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
td.hint div {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
position: absolute;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
text-overflow: ellipsis;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
overflow: hidden;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
top: 1px;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
left: 5px;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
right: 5px;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
44
44:51371d1b3578 viewer: map all background colors into css classes, let's see how it works out
Anton Shestakov <av6@dwimlabs.net>
previous changes: 42:f40091264dcb
line | diff
{% for rgb, cc in colormap.items() %}{#
44:51371d1b3578 viewer: map all background colors into css classes, let's see how it works out
Anton Shestakov <av6@dwimlabs.net>
previous changes: 42:f40091264dcb
line | diff
#}.{{ cc }} { background: rgb({{ '{},{},{}'.format(*rgb) }}); }
44:51371d1b3578 viewer: map all background colors into css classes, let's see how it works out
Anton Shestakov <av6@dwimlabs.net>
previous changes: 42:f40091264dcb
line | diff
{% end %}
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</style>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</head>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<body>
20
20:2121bac8dcf0 viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line | diff
<header>
36
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<p>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<a href="{{ setrev() }}">back to tip</a>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% set prevrev = changesets[0]['rev'] + 120 if changesets else None %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% if prevrev %}<a href="{{ setrev(prevrev) }}">prev page</a>{% end %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% set nextrev = changesets[-1]['rev'] - 1 if changesets else None %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% if nextrev > -1 %}<a href="{{ setrev(nextrev) }}">next page</a>{% end %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<span style="color: #777;">
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
hover things for a tooltip; red means slow, green means fast; first
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
color and time means without .hg/cache, second means with .hg/cache.
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</span>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</p>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<p>
31
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% if local %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
local colors (<a href="{{ setlocal(None) }}">switch to global colors</a>)
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% else %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
global colors (<a href="{{ setlocal(1) }}">switch to local colors</a>)
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% end %}
36
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</p>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<p>
31
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
timings:
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% for mark, desc in marks.items() %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
-<a href="{{ setmarks(remove=mark) }}" title="{{ desc }}">{{ mark }}</a>
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% end %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% for mark, desc in moremarks.items() %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
+<a href="{{ setmarks(add=mark) }}" title="{{ desc }}">{{ mark }}</a>
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% end %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
*<a href="{{ setmarks() }}">all</a>
54
54:3fb3f68e9627 viewer: selecting no benchmark results (in addition to all results)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 46:d89076c15b35
line | diff
*<a href="{{ setmarks('') }}">none</a>
36
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</p>
20
20:2121bac8dcf0 viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line | diff
</header>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<table>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<thead>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<tr>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>rev</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>node</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td title="merge">M</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>branch</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>tags</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>user</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>desc</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% for mark, desc in marks.items() %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td title="{{ desc }}">{{ mark }}</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% end %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</tr>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</thead>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<tbody>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% for cset in changesets %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<tr>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>{{ cset['rev'] }}</td>
41
41:db33172bc2ab viewer: fix mistyped </a>
Anton Shestakov <av6@dwimlabs.net>
previous changes: 39:f435e3c69f4e
line | diff
<td><a href="http://selenic.com/hg/rev/{{ cset['node'] }}">{{ cset['node'][:12] }}</a></td>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>{{ 'M' if len(cset['parents']) > 1 else '' }}</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>{{ cset['branch'] }}</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>{{ ', '.join(cset['tags']) }}</td>
39
39:f435e3c69f4e viewer: shorten usernames/emails by replacing domain part after @
Anton Shestakov <av6@dwimlabs.net>
previous changes: 36:82ab27e2178f
line | diff
<td title="{{ showuser(cset['user']) }}">{{ showuser(cset['user'], short=True) }}</td>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td class="hint"><div title="{{ cset['desc'] }}">{{ cset['desc'].partition('\n')[0] }}</div></td>
46
46:d89076c15b35 viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line | diff
{% for mark in marks %}{#
46:d89076c15b35 viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line | diff
#}{% set result = results.get(cset['node'], {}) %}{#
46:d89076c15b35 viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line | diff
#}{% set v1, c1, v2, c2 = result.get(mark, (None, None, None, None)) %}{#
46:d89076c15b35 viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line | diff
#}<td>{#
46:d89076c15b35 viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line | diff
#}<span{% if c1 is not None %} class="{{ colormap[c1] }}"{% end %}>&nbsp;</span>{#
46:d89076c15b35 viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line | diff
#}<span{% if c2 is not None %} class="{{ colormap[c2] }}"{% end %}>&nbsp;</span>{#
55
55:119a07aacb84 viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line | diff
#}<span title="{{ '{:.5f}s without .hg/cache'.format(v1) if v1 is not None else '(no data)' }}">{#
55:119a07aacb84 viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line | diff
#}{{ '{:.2f}'.format(v1) if v1 is not None else '-' }}{#
55:119a07aacb84 viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line | diff
#}</span>{#
9
9:95a9dbed32a6 viewer: show second time in .html view
Anton Shestakov <engored@ya.ru>
previous changes: 1:cb057921cd8c
line | diff
#}/{#
55
55:119a07aacb84 viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line | diff
#}<span title="{{ '{:.5f}s with .hg/cache'.format(v2) if v2 is not None else '(no data)' }}">{#
55:119a07aacb84 viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line | diff
#}{{ '{:.2f}'.format(v2) if v2 is not None else '-' }}{#
55:119a07aacb84 viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line | diff
#}</span>{#
46
46:d89076c15b35 viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line | diff
#}</td>
46:d89076c15b35 viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line | diff
{% end %}{#
46:d89076c15b35 viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line | diff
#}</tr>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% end %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</tbody>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</table>
20
20:2121bac8dcf0 viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line | diff
<footer>
36
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<p>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<a href="{{ setrev() }}">back to tip</a>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% if prevrev %}<a href="{{ setrev(prevrev) }}">prev page</a>{% end %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% if nextrev > -1 %}<a href="{{ setrev(nextrev) }}">next page</a>{% end %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</p>
20
20:2121bac8dcf0 viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line | diff
</footer>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</body>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</html>