Skip to content

Commit e37221f

Browse files
committed
Memtable regression test
Summary: The old regression tests didn't cover memtable part at all. This is an atempt to also measure memtable performance in regression tests. Test Plan: Ran regression_build_test.sh Reviewers: dhruba, haobo, kailiu, emayanke Reviewed By: dhruba CC: leveldb, reconnect.grayhat Differential Revision: https://reviews.facebook.net/D14325
1 parent 11c26bd commit e37221f

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

build_tools/regression_build_test.sh

+26-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function cleanup {
2222
rm -f $STAT_FILE.fillseq
2323
rm -f $STAT_FILE.readrandom
2424
rm -f $STAT_FILE.overwrite
25+
rm -f $STAT_FILE.memtablefillreadrandom
2526
}
2627

2728
trap cleanup EXIT
@@ -39,7 +40,7 @@ function send_to_ods {
3940
}
4041

4142
make clean
42-
make db_bench -j$(nproc)
43+
OPT=-DNDEBUG make db_bench -j$(nproc)
4344

4445
./db_bench \
4546
--benchmarks=fillseq \
@@ -80,7 +81,7 @@ make db_bench -j$(nproc)
8081
--use_existing_db=1 \
8182
--bloom_bits=10 \
8283
--num=$NUM \
83-
--reads=$((NUM / 100)) \
84+
--reads=$NUM \
8485
--cache_size=6442450944 \
8586
--cache_numshardbits=6 \
8687
--open_files=55000 \
@@ -91,10 +92,33 @@ make db_bench -j$(nproc)
9192
--sync=0 \
9293
--threads=128 > ${STAT_FILE}.readrandom
9394

95+
./db_bench \
96+
--benchmarks=fillrandom,readrandom, \
97+
--db=$DATA_DIR \
98+
--use_existing_db=0 \
99+
--num=$((NUM / 10)) \
100+
--reads=$NUM \
101+
--cache_size=6442450944 \
102+
--cache_numshardbits=6 \
103+
--write_buffer_size=1000000000 \
104+
--open_files=55000 \
105+
--disable_seek_compaction=1 \
106+
--statistics=1 \
107+
--histogram=1 \
108+
--disable_data_sync=1 \
109+
--disable_wal=1 \
110+
--sync=0 \
111+
--value_size=10 \
112+
--threads=32 > ${STAT_FILE}.memtablefillreadrandom
113+
94114
OVERWRITE_OPS=$(awk '/overwrite/ {print $5}' $STAT_FILE.overwrite)
95115
FILLSEQ_OPS=$(awk '/fillseq/ {print $5}' $STAT_FILE.fillseq)
96116
READRANDOM_OPS=$(awk '/readrandom/ {print $5}' $STAT_FILE.readrandom)
117+
MEMTABLE_FILLRANDOM_OPS=$(awk '/fillrandom/ {print $5}' $STAT_FILE.memtablefillreadrandom)
118+
MEMTABLE_READRANDOM_OPS=$(awk '/readrandom/ {print $5}' $STAT_FILE.memtablefillreadrandom)
97119

98120
send_to_ods rocksdb.build.overwrite.qps $OVERWRITE_OPS
99121
send_to_ods rocksdb.build.fillseq.qps $FILLSEQ_OPS
100122
send_to_ods rocksdb.build.readrandom.qps $READRANDOM_OPS
123+
send_to_ods rocksdb.build.memtablefillrandom.qps $MEMTABLE_FILLRANDOM_OPS
124+
send_to_ods rocksdb.build.memtablereadrandom.qps $MEMTABLE_READRANDOM_OPS

0 commit comments

Comments
 (0)