Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kvdb
rocksdb
提交
f37a5976
R
rocksdb
项目概览
kvdb
/
rocksdb
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rocksdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f37a5976
编写于
12月 11, 2013
作者:
I
Igor Canadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updating regression test based on master's version
上级
41349d9e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
99 addition
and
17 deletion
+99
-17
build_tools/regression_build_test.sh
build_tools/regression_build_test.sh
+99
-17
未找到文件。
build_tools/regression_build_test.sh
浏览文件 @
f37a5976
...
...
@@ -26,15 +26,20 @@ function cleanup {
}
trap
cleanup EXIT
git_br
=
$(
basename
$GIT_BRANCH
)
if
[
-z
$GIT_BRANCH
]
;
then
git_br
=
`
git rev-parse
--abbrev-ref
HEAD
`
else
git_br
=
$(
basename
$GIT_BRANCH
)
fi
if
[
$git_br
==
"master"
]
;
then
git_br
=
""
else
git_br
=
"."
$git_br
fi
make clean
OPT
=
-DNDEBUG
make db_bench
-j
$(
nproc
)
make release
# measure fillseq + fill up the DB for overwrite benchmark
./db_bench
\
...
...
@@ -45,7 +50,8 @@ OPT=-DNDEBUG make db_bench -j$(nproc)
--num
=
$NUM
\
--writes
=
$NUM
\
--cache_size
=
6442450944
\
--cache_numshardbits
=
6
\
--cache_numshardbits
=
4
\
--table_cache_numshardbits
=
4
\
--open_files
=
55000
\
--statistics
=
1
\
--histogram
=
1
\
...
...
@@ -60,9 +66,10 @@ OPT=-DNDEBUG make db_bench -j$(nproc)
--use_existing_db
=
1
\
--bloom_bits
=
10
\
--num
=
$NUM
\
--writes
=
$((
NUM
/
2
))
\
--writes
=
$((
NUM
/
10
))
\
--cache_size
=
6442450944
\
--cache_numshardbits
=
6
\
--cache_numshardbits
=
4
\
--table_cache_numshardbits
=
4
\
--open_files
=
55000
\
--statistics
=
1
\
--histogram
=
1
\
...
...
@@ -80,7 +87,8 @@ OPT=-DNDEBUG make db_bench -j$(nproc)
--num
=
$NUM
\
--writes
=
$NUM
\
--cache_size
=
6442450944
\
--cache_numshardbits
=
6
\
--cache_numshardbits
=
4
\
--table_cache_numshardbits
=
4
\
--open_files
=
55000
\
--statistics
=
1
\
--histogram
=
1
\
...
...
@@ -96,9 +104,10 @@ OPT=-DNDEBUG make db_bench -j$(nproc)
--use_existing_db
=
1
\
--bloom_bits
=
10
\
--num
=
$NUM
\
--reads
=
$
NUM
\
--reads
=
$
((
NUM
/
5
))
\
--cache_size
=
6442450944
\
--cache_numshardbits
=
8
\
--cache_numshardbits
=
4
\
--table_cache_numshardbits
=
4
\
--open_files
=
55000
\
--disable_seek_compaction
=
1
\
--statistics
=
1
\
...
...
@@ -106,26 +115,90 @@ OPT=-DNDEBUG make db_bench -j$(nproc)
--disable_data_sync
=
1
\
--disable_wal
=
1
\
--sync
=
0
\
--threads
=
32
>
${
STAT_FILE
}
.readrandom
--threads
=
16
>
${
STAT_FILE
}
.readrandom
# measure readrandom with
3
00MB block cache
# measure readrandom with
1
00MB block cache
./db_bench
\
--benchmarks
=
readrandom
\
--db
=
$DATA_DIR
\
--use_existing_db
=
1
\
--bloom_bits
=
10
\
--num
=
$NUM
\
--reads
=
$NUM
\
--cache_size
=
314572800
\
--cache_numshardbits
=
8
\
--reads
=
$((
NUM
/
5
))
\
--cache_size
=
104857600
\
--cache_numshardbits
=
4
\
--table_cache_numshardbits
=
4
\
--open_files
=
55000
\
--disable_seek_compaction
=
1
\
--statistics
=
1
\
--histogram
=
1
\
--disable_data_sync
=
1
\
--disable_wal
=
1
\
--sync
=
0
\
--threads
=
16
>
${
STAT_FILE
}
.readrandomsmallblockcache
# measure readrandom with 8k data in memtable
./db_bench
\
--benchmarks
=
overwrite,readrandom
\
--db
=
$DATA_DIR
\
--use_existing_db
=
1
\
--bloom_bits
=
10
\
--num
=
$NUM
\
--reads
=
$((
NUM
/
5
))
\
--writes
=
512
\
--cache_size
=
6442450944
\
--cache_numshardbits
=
4
\
--table_cache_numshardbits
=
4
\
--write_buffer_size
=
1000000000
\
--open_files
=
55000
\
--disable_seek_compaction
=
1
\
--statistics
=
1
\
--histogram
=
1
\
--disable_data_sync
=
1
\
--disable_wal
=
1
\
--sync
=
0
\
--threads
=
16
>
${
STAT_FILE
}
.readrandom_mem_sst
# fill up the db for readrandom benchmark with filluniquerandom (1GB total size)
./db_bench
\
--benchmarks
=
filluniquerandom
\
--db
=
$DATA_DIR
\
--use_existing_db
=
0
\
--bloom_bits
=
10
\
--num
=
$((
NUM
/
4
))
\
--writes
=
$((
NUM
/
4
))
\
--cache_size
=
6442450944
\
--cache_numshardbits
=
4
\
--table_cache_numshardbits
=
4
\
--open_files
=
55000
\
--statistics
=
1
\
--histogram
=
1
\
--disable_data_sync
=
1
\
--disable_wal
=
1
\
--sync
=
0
\
--threads
=
1
>
/dev/null
# measure readrandom after load with filluniquerandom with 6GB block cache
./db_bench
\
--benchmarks
=
readrandom
\
--db
=
$DATA_DIR
\
--use_existing_db
=
1
\
--bloom_bits
=
10
\
--num
=
$((
NUM
/
4
))
\
--reads
=
$((
NUM
/
4
))
\
--cache_size
=
6442450944
\
--cache_numshardbits
=
4
\
--table_cache_numshardbits
=
4
\
--open_files
=
55000
\
--disable_seek_compaction
=
1
\
--disable_auto_compactions
=
1
\
--statistics
=
1
\
--histogram
=
1
\
--disable_data_sync
=
1
\
--disable_wal
=
1
\
--sync
=
0
\
--threads
=
32
>
${
STAT_FILE
}
.readrandomsmallblockcache
--threads
=
16
>
${
STAT_FILE
}
.readrandom_filluniquerandom
# measure memtable performance -- none of the data gets flushed to disk
./db_bench
\
...
...
@@ -135,7 +208,8 @@ OPT=-DNDEBUG make db_bench -j$(nproc)
--num
=
$((
NUM
/
10
))
\
--reads
=
$NUM
\
--cache_size
=
6442450944
\
--cache_numshardbits
=
8
\
--cache_numshardbits
=
4
\
--table_cache_numshardbits
=
4
\
--write_buffer_size
=
1000000000
\
--open_files
=
55000
\
--disable_seek_compaction
=
1
\
...
...
@@ -145,13 +219,19 @@ OPT=-DNDEBUG make db_bench -j$(nproc)
--disable_wal
=
1
\
--sync
=
0
\
--value_size
=
10
\
--threads
=
32
>
${
STAT_FILE
}
.memtablefillreadrandom
--threads
=
16
>
${
STAT_FILE
}
.memtablefillreadrandom
# send data to ods
function
send_to_ods
{
key
=
"
$1
"
value
=
"
$2
"
if
[
-z
$JENKINS_HOME
]
;
then
# running on devbox, just print out the values
echo
$1
$2
return
fi
if
[
-z
"
$value
"
]
;
then
echo
>
&2
"ERROR: Key
$key
doesn't have a value."
return
...
...
@@ -180,5 +260,7 @@ send_benchmark_to_ods overwrite overwrite $STAT_FILE.overwrite
send_benchmark_to_ods fillseq fillseq
$STAT_FILE
.fillseq
send_benchmark_to_ods readrandom readrandom
$STAT_FILE
.readrandom
send_benchmark_to_ods readrandom readrandom_smallblockcache
$STAT_FILE
.readrandomsmallblockcache
send_benchmark_to_ods readrandom readrandom_memtable_sst
$STAT_FILE
.readrandom_mem_sst
send_benchmark_to_ods readrandom readrandom_fillunique_random
$STAT_FILE
.readrandom_filluniquerandom
send_benchmark_to_ods fillrandom memtablefillrandom
$STAT_FILE
.memtablefillreadrandom
send_benchmark_to_ods readrandom memtablereadrandom
$STAT_FILE
.memtablefillreadrandom
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录