-
Notifications
You must be signed in to change notification settings - Fork 72
/
bcrunner.sh
executable file
·43 lines (34 loc) · 1.05 KB
/
bcrunner.sh
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
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
test_name=$1
bin_size=$2
version=$3
perf_test=$4
backend=$5
cuttle=$5
if [ -z $version -o -z $test_name -o -z $bin_size ]; then
echo "out"
exit 1
fi
if [ -z $perf_test ]; then
perf_test="get_put"
fi
if [ -z $backend ]; then
backend="riak_kv_bitcask_backend"
fi
if [ ! -z $cuttle ]; then
cuttle="--cuttle false"
else
cuttle=""
fi
./riak_test -c rtperf2 -t $perf_test -b $backend -- --restart true --prepop true \
--run-time 120 --target-pct 120 --ram-size 48 \
--bin-size $bin_size --name $test_name --bin-type exponential \
--version $version $cuttle
./riak_test -c rtperf2 -t $perf_test -b $backend -- --restart true --prepop true \
--run-time 120 --target-pct 70 --ram-size 48 \
--bin-size $bin_size --name $test_name --bin-type exponential \
--version $version $cuttle
./riak_test -c rtperf2 -t $perf_test -b $backend -- --restart true --prepop true \
--run-time 120 --target-pct 20 --ram-size 48 \
--bin-size $bin_size --name $test_name --bin-type exponential \
--version $version $cuttle