/
run_hard_data.sh
31 lines (23 loc) · 1.05 KB
/
run_hard_data.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
#!/bin/sh
# Check dependancy.
echo "== Compiling... =="
make clean
make all
echo " "
echo "== Calculating parameter =="
./cal_param -n 10000 -m 7
if [ -d "index" ]; then
rm -r index
fi
mkdir index
echo " "
echo "== Testing using different random seeds =="
for i in 1 2 3 4 5 6 7 8 9 10
do
#echo " "
echo "= Test $i ="
./srs -I -d 128 -i index/ -m 7 -n 10000 -s hard_data/hard.ds -y f -e $i
#echo " "
#echo "== Processing query workload... =="
./srs -Q -c 4 -g hard_data/hard.gt -i index/ -k 1 -q hard_data/hard.q -t 6 -r 0.299203
done