mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
align numbers to the right in perf report
This commit is contained in:
parent
065db05665
commit
e2e4fc9848
@ -63,7 +63,48 @@ p.links a {{ padding: 5px; margin: 3px; background: #FFF; line-height: 2; white-
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}}
|
||||
|
||||
tr:nth-child(odd) td {{filter: brightness(95%);}}
|
||||
|
||||
.all-query-times tr td:nth-child(1),
|
||||
.all-query-times tr td:nth-child(2),
|
||||
.all-query-times tr td:nth-child(3),
|
||||
.all-query-times tr td:nth-child(4),
|
||||
.all-query-times tr td:nth-child(5),
|
||||
.all-query-times tr td:nth-child(7),
|
||||
.changes-in-performance tr td:nth-child(1),
|
||||
.changes-in-performance tr td:nth-child(2),
|
||||
.changes-in-performance tr td:nth-child(3),
|
||||
.changes-in-performance tr td:nth-child(4),
|
||||
.changes-in-performance tr td:nth-child(5),
|
||||
.changes-in-performance tr td:nth-child(7),
|
||||
.unstable-queries tr td:nth-child(1),
|
||||
.unstable-queries tr td:nth-child(2),
|
||||
.unstable-queries tr td:nth-child(3),
|
||||
.unstable-queries tr td:nth-child(4),
|
||||
.unstable-queries tr td:nth-child(6),
|
||||
.test-performance-changes tr td:nth-child(2),
|
||||
.test-performance-changes tr td:nth-child(3),
|
||||
.test-performance-changes tr td:nth-child(4),
|
||||
.test-performance-changes tr td:nth-child(5),
|
||||
.test-performance-changes tr td:nth-child(6),
|
||||
.test-times tr td:nth-child(2),
|
||||
.test-times tr td:nth-child(3),
|
||||
.test-times tr td:nth-child(4),
|
||||
.test-times tr td:nth-child(5),
|
||||
.test-times tr td:nth-child(6),
|
||||
.test-times tr td:nth-child(7),
|
||||
.test-times tr td:nth-child(8),
|
||||
.concurrent-benchmarks tr td:nth-child(2),
|
||||
.concurrent-benchmarks tr td:nth-child(3),
|
||||
.concurrent-benchmarks tr td:nth-child(4),
|
||||
.concurrent-benchmarks tr td:nth-child(5),
|
||||
.metric-changes tr td:nth-child(2),
|
||||
.metric-changes tr td:nth-child(3),
|
||||
.metric-changes tr td:nth-child(4),
|
||||
.metric-changes tr td:nth-child(5)
|
||||
{{ text-align: right; }}
|
||||
|
||||
</style>
|
||||
<title>Clickhouse performance comparison</title>
|
||||
</head>
|
||||
@ -111,11 +152,14 @@ def tableHeader(r):
|
||||
return tr(''.join([th(f) for f in r]))
|
||||
|
||||
def tableStart(title):
|
||||
return """
|
||||
<h2 id="{anchor}"><a class="cancela" href="#{anchor}">{title}</a></h2>
|
||||
<table>""".format(
|
||||
anchor = nextTableAnchor(),
|
||||
title = title)
|
||||
anchor = nextTableAnchor();
|
||||
cls = '-'.join(title.lower().split(' ')[:3]);
|
||||
return f"""
|
||||
<h2 id="{anchor}">
|
||||
<a class="cancela" href="#{anchor}">{title}</a>
|
||||
</h2>
|
||||
<table class="{cls}">
|
||||
"""
|
||||
|
||||
def tableEnd():
|
||||
return '</table>'
|
||||
@ -282,7 +326,7 @@ if args.report == 'main':
|
||||
'Old, s', #0
|
||||
'New, s', #1
|
||||
'Relative difference (new - old)/old', #2
|
||||
'p < 0.001 threshold', #3
|
||||
'p < 0.001 threshold', #3
|
||||
# Failed #4
|
||||
'Test', #5
|
||||
'#', #6
|
||||
@ -501,7 +545,7 @@ elif args.report == 'all-queries':
|
||||
'New, s', #3
|
||||
'Times speedup / slowdown', #4
|
||||
'Relative difference (new − old) / old', #5
|
||||
'p < 0.001 threshold', #6
|
||||
'p < 0.001 threshold', #6
|
||||
'Test', #7
|
||||
'#', #8
|
||||
'Query', #9
|
||||
|
Loading…
Reference in New Issue
Block a user