Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
1e4d127f
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,发现更多精彩内容 >>
提交
1e4d127f
编写于
4月 23, 2020
作者:
N
Nikita Mikhaylov
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of github.com:ClickHouse/ClickHouse
上级
3520755a
d99f516f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
63 addition
and
8 deletion
+63
-8
docker/test/performance-comparison/compare.sh
docker/test/performance-comparison/compare.sh
+2
-2
docker/test/performance-comparison/download.sh
docker/test/performance-comparison/download.sh
+7
-6
docker/test/performance-comparison/manual-run.sh
docker/test/performance-comparison/manual-run.sh
+54
-0
未找到文件。
docker/test/performance-comparison/compare.sh
浏览文件 @
1e4d127f
...
...
@@ -14,8 +14,8 @@ function configure
rm
right/config/config.d/text_log.xml
||
:
cp
-rv
right/config left
||
:
sed
-i
's/<tcp_port>900
0
/<tcp_port>9001/g'
left/config/config.xml
sed
-i
's/<tcp_port>900
0
/<tcp_port>9002/g'
right/config/config.xml
sed
-i
's/<tcp_port>900
.
/<tcp_port>9001/g'
left/config/config.xml
sed
-i
's/<tcp_port>900
.
/<tcp_port>9002/g'
right/config/config.xml
# Start a temporary server to rename the tables
while
killall clickhouse-server
;
do
echo
.
;
sleep
1
;
done
...
...
docker/test/performance-comparison/download.sh
浏览文件 @
1e4d127f
...
...
@@ -5,6 +5,8 @@ trap "exit" INT TERM
trap
'kill $(jobs -pr) ||:'
EXIT
mkdir
db0
||
:
mkdir
left
||
:
mkdir
right
||
:
left_pr
=
$1
left_sha
=
$2
...
...
@@ -22,11 +24,6 @@ dataset_paths["values"]="https://clickhouse-datasets.s3.yandex.net/values_with_e
function
download
{
rm
-r
left
||
:
mkdir
left
||
:
rm
-r
right
||
:
mkdir
right
||
:
# might have the same version on left and right
if
!
[
"
$left_sha
"
=
"
$right_sha
"
]
then
...
...
@@ -39,7 +36,11 @@ function download
for
dataset_name
in
$datasets
do
dataset_path
=
"
${
dataset_paths
[
$dataset_name
]
}
"
[
"
$dataset_path
"
!=
""
]
if
[
"
$dataset_path
"
=
""
]
then
>
&2
echo
"Unknown dataset '
$dataset_name
'"
exit
1
fi
cd
db0
&&
wget
-nv
-nd
-c
"
$dataset_path
"
-O-
|
tar
-xv
&
done
...
...
docker/test/performance-comparison/manual-run.sh
0 → 100755
浏览文件 @
1e4d127f
#!/bin/bash
set
-ex
set
-o
pipefail
trap
"exit"
INT TERM
trap
'kill $(jobs -pr) ||:'
EXIT
stage
=
${
stage
:-}
script_dir
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
repo_dir
=
${
repo_dir
:-
$(
readlink
-f
"
$script_dir
/../../.."
)
}
function
download
{
rm
-r
left right db0
||
:
mkdir
left right db0
||
:
"
$script_dir
/download.sh"
||
: &
cp
-vP
"
$repo_dir
"
/../build-gcc9-rel/programs/clickhouse
*
right &
cp
-vP
"
$repo_dir
"
/../build-clang10-rel/programs/clickhouse
*
left &
wait
}
function
configure
{
# Test files
cp
-av
"
$repo_dir
/tests/performance"
right
cp
-av
"
$repo_dir
/tests/performance"
left
# Configs
cp
-av
"
$script_dir
/config"
right
cp
-av
"
$script_dir
/config"
left
cp
-av
"
$repo_dir
"
/programs/server/config
*
right/config
cp
-av
"
$repo_dir
"
/programs/server/user
*
right/config
cp
-av
"
$repo_dir
"
/programs/server/config
*
left/config
cp
-av
"
$repo_dir
"
/programs/server/user
*
left/config
tree left
}
function
run
{
left/clickhouse-local
--query
"select * from system.build_options format PrettySpace"
|
sed
's/ *$//'
|
fold
-w
80
-s
>
left-commit.txt
right/clickhouse-local
--query
"select * from system.build_options format PrettySpace"
|
sed
's/ *$//'
|
fold
-w
80
-s
>
right-commit.txt
PATH
=
right:
"
$PATH
"
stage
=
configure
"
$script_dir
/compare.sh"
&>
>(
tee
compare.log
)
}
download
configure
run
rm
output.7z
7z a output.7z ./
*
.
{
log,tsv,html,txt,rep,svg
}
{
right,left
}
/
{
performance,db/preprocessed_configs
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录