-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathdb_bench.sh
More file actions
31 lines (29 loc) · 1.07 KB
/
db_bench.sh
File metadata and controls
31 lines (29 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash -ex
#rm -rf /dev/shm/db_bench_enterprise
#rm -rf /tmp/db_bench_enterprise
mkdir -p /dev/shm/db_bench_enterprise
#mkdir -p /tmp/db_bench_enterprise
cp sideplugin/rockside/src/topling/web/{index.html,style.css} /dev/shm/db_bench_enterprise/
export TOPLINGDB_GetContext_sampling=kNone
export ROCKSDB_KICK_OUT_OPTIONS_FILE=1
#export PRINT_NOT_FOUND=true
ulimit -n 100000
args=(
-json sideplugin/rockside/sample-conf/db_bench_enterprise.yaml
-num=10000000 -key_size=8
-value_size=2000
-batch_size=100
#-benchmarks=fillseq,compact,nextwithkey,nextwithkey,nextwithkey,nextwithkey,nextwithkey,readseq,readseq,readseq,readseq,readseq
-benchmarks=fillrandom,readrandom
#-benchmarks=fillseq,compact
#-benchmarks=compact -use_existing_db
#-benchmarks=readrandom
#-benchmarks=readseq
#-benchmarks=nextwithkey
#-wkey_file=${HOME}/wikipedia-title-seq.txt
#-rkey_file=${HOME}/wikipedia-title-seq.txt
#-threads=8
-scan_omit_key -scan_omit_value
-enable_zero_copy # ToplingDB specific, for point search by Get/MultiGet
)
./db_bench ${args[@]} "$@"