Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
009d3dc7
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
009d3dc7
编写于
2月 03, 2020
作者:
A
Alexander Kuzmenkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
performance comparison
上级
b3b40232
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
11 deletion
+20
-11
docker/test/performance-comparison/compare.sh
docker/test/performance-comparison/compare.sh
+1
-1
docker/test/performance-comparison/entrypoint.sh
docker/test/performance-comparison/entrypoint.sh
+11
-7
docker/test/performance-comparison/report.py
docker/test/performance-comparison/report.py
+8
-3
未找到文件。
docker/test/performance-comparison/compare.sh
浏览文件 @
009d3dc7
...
...
@@ -130,7 +130,7 @@ function run_tests
rm
left/performance/
{
IPv4,IPv6,modulo,parse_engine_file,number_formatting_formats,select_format
}
.xml
||
:
# Run the tests
for
test
in
left/performance/
*
.xml
for
test
in
left/performance/
${
CHPC_TEST_GLOB
:-
*.xml
}
do
test_name
=
$(
basename
$test
".xml"
)
echo test
$test_name
...
...
docker/test/performance-comparison/entrypoint.sh
浏览文件 @
009d3dc7
...
...
@@ -17,12 +17,16 @@ echo Reference tag is $ref_tag
ref_sha
=
$(
cd
ch
&&
git rev-parse
$ref_tag
~0
)
# Show what we're testing
echo
Reference SHA is
$ref_sha
(
cd
ch
&&
git log
-1
--decorate
$ref_sha
)
||
:
echo
echo
SHA to
test
is
$SHA_TO_TEST
(
cd
ch
&&
git log
-1
--decorate
$SHA_TO_TEST
)
||
:
echo
(
echo
Reference SHA is
$ref_sha
(
cd
ch
&&
git log
-1
--decorate
$ref_sha
)
||
:
echo
)
|
tee
left-commit.txt
(
echo
SHA to
test
is
$SHA_TO_TEST
(
cd
ch
&&
git log
-1
--decorate
$SHA_TO_TEST
)
||
:
echo
)
|
tee
right-commit.txt
# Set python output encoding so that we can print queries with Russian letters.
export
PYTHONIOENCODING
=
utf-8
...
...
@@ -36,5 +40,5 @@ set -m
time
../compare.sh 0
$ref_sha
$PR_TO_TEST
$SHA_TO_TEST
2>&1 | ts |
tee
compare.log
set
+m
7z a /output/output.7z
*
.log
*
.tsv
*
.html
7z a /output/output.7z
*
.log
*
.tsv
*
.html
*
.txt
cp
compare.log /output
docker/test/performance-comparison/report.py
浏览文件 @
009d3dc7
...
...
@@ -84,11 +84,16 @@ def tsv_rows(n):
params
=
collections
.
defaultdict
(
str
)
params
[
'header'
]
=
"ClickHouse Performance Comparison"
params
[
'test_part'
]
=
(
table_template
.
format_map
(
collections
.
defaultdict
(
str
,
params
[
'test_part'
]
=
(
table_template
.
format
(
caption
=
'Tested commits'
,
header
=
table_header
([
'Old'
,
'New'
]),
rows
=
table_row
([
open
(
'left-commit.txt'
).
read
(),
open
(
'right-commit.txt'
).
read
()])
)
+
table_template
.
format
(
caption
=
'Changes in performance'
,
header
=
table_header
([
'Old, s'
,
'New, s'
,
'Relative difference (new - old)/old'
,
'Randomization distribution quantiles [5%, 50%, 95%]'
,
'Query'
]),
rows
=
tsv_rows
(
'changed-perf.tsv'
))
)
+
rows
=
tsv_rows
(
'changed-perf.tsv'
))
+
table_template
.
format
(
caption
=
'Slow on client'
,
header
=
table_header
([
'Client time, s'
,
'Server time, s'
,
'Ratio'
,
'Query'
]),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录