-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrunServer.sh
executable file
·35 lines (32 loc) · 1.07 KB
/
runServer.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
max_docs="128"
bf_sz="1024"
correct="false"
while getopts ":h?:d:n:t:b:s:c:" opt; do
case "$opt" in
h|\?)
echo -e "\nArguments: "
echo -e "-b \t\t Bits in Bloom filter (default 1120)"
echo -e "-n \t\t Max number of documents (default 1024)"
echo -e "-s \t\t Server number (default 1)"
echo -e "-m \t\t Malicious security? (default true)"
exit 0
;;
t)
correct=$OPTARG
;;
n)
max_docs=$OPTARG
;;
b)
bf_sz=$OPTARG
;;
s)
server_num=$OPTARG
;;
c)
correct=$OPTARG
;;
esac
done
echo "bench_dir='$bench_dir', bf_sz='$bf_sz', max_docs='$max_docs', server_num='$server_num'"
CGO_CFLAGS="-I./libsolv-sys/src -D LIBSOLV_INTERNAL -w" CGO_LDFLAGS="-lssl -lpthread -lcrypto -lm "$PWD"/src/c/libstemmer.o" go run src/server/server.go --config=src/config/server"$server_num".config --bf_sz="$bf_sz" --max_docs="$max_docs"