-
Notifications
You must be signed in to change notification settings - Fork 0
/
do_model_experiments.sh
121 lines (104 loc) · 3.53 KB
/
do_model_experiments.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/bin/bash -e
run_n_times(){
number=$1
shift
for n in $(seq $number); do
$@
sleep 2
done
}
export GMPT_MODEL_DATA_VOLUME=1048576
# export GMPT_MODEL_CLUSTER_NUM=5
export GMPT_MODEL_DATA_SIZE=640000
n1=$GMPT_MODEL_DATA_VOLUME
# n2=$GMPT_MODEL_CLUSTER_NUM
n3=$GMPT_MODEL_DATA_SIZE
# modify the build path
BUILD_PATH=./build
REPEAT=5
# rm ./data/cluster*
# rm ./data/multi_cluster*
# rm ./data/uniform*
# rm ./data/rangetriesize*
# # rm ./data/uniformnew*
# # rm ./data/rangetriesizecluster*
# rm ./data/smalluniform*
# rm ./data/mediumuniform*
# rm ./data/largeuniform*
# rm ./data/uniform*
rm test_model.log
# for (( a = 1; a <= 10; a++ )) do
# echo test_uniform...
# run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.SmallUniform" >> test_model.log
# n1=`expr $n1 + 1 `
# echo $n1
# export GMPT_MODEL_DATA_VOLUME=$n1
# done
# export GMPT_MODEL_DATA_VOLUME=5
# n1=$GMPT_MODEL_DATA_VOLUME
# export GMPT_MODEL_DATA_SIZE=80000
for (( a = 1; a <= 20; a++)) do
echo test_cluster...
run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.Cluster" >> test_model.log
n1=`expr $n1 / 2 `
echo $n1
export GMPT_MODEL_DATA_VOLUME=$n1
done
# for (( a = 1; a <= 20; a++ )) do
# echo test_uniform...
# run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.SmallUniform" >> test_model.log
# n1=`expr $n1 + 1 `
# echo $n1
# export GMPT_MODEL_DATA_VOLUME=$n1
# done
# export GMPT_MODEL_DATA_VOLUME=5
# n1=$GMPT_MODEL_DATA_VOLUME
# export GMPT_MODEL_DATA_SIZE=10000
# for (( a = 1; a <= 30; a++ )) do
# echo test_uniform...
# run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.SmallUniform" >> test_model.log
# n1=`expr $n1 + 1 `
# echo $n1
# export GMPT_MODEL_DATA_VOLUME=$n1
# done
# for (( a = 1; a <=20; a++ )) do
# echo test_medium_and_large_uniform...
# run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.MediumUniform" >> test_model.log
# run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.LargeUniform" >> test_model.log
# n1=`expr $n1 / 2 `
# echo $n1
# export GMPT_MODEL_DATA_VOLUME=$n1
# done
# for (( b = 1; b <= 40; b++ )) do
# echo test_small_uniform...
# run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.SmallUniform" >> test_model.log
# n3=`expr $n3 - 1 `
# echo $n3
# export GMPT_MODEL_DATA_SIZE=$n3
# done
# for (( c = 1; c <= 8; c++ )) do
# for (( a = 1; a <= 20; a++ )) do
# $BUILD_PATH/utils "--gtest_filter=Util.args" "--gtest_also_run_disabled_tests"
# echo test_model...
# run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.RangeTrieSize" >> test_model.log
# # run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.Uniform" >> test_model.log
# # run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.RangeTrieCluster" >> test_model.log
# # echo test_multi_cluster...
# # for (( b = 1; b <= 5; b++ )) do
# # run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.MultiCluster" >> test_model.log
# # n2=`expr $n2 - 1`
# # echo $n2
# # export GMPT_MODEL_CLUSTER_NUM=$n2
# # done
# # export GMPT_MODEL_CLUSTER_NUM=5
# # n2=$GMPT_MODEL_CLUSTER_NUM
# n1=`expr $n1 / 2 `
# echo $n1
# export GMPT_MODEL_DATA_VOLUME=$n1
# done
# export GMPT_MODEL_DATA_VOLUME=1048576
# n1=$GMPT_MODEL_DATA_VOLUME
# n3=`expr $n3 / 2 `
# echo $n3
# export GMPT_MODEL_DATA_SIZE=$n3
# done