-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun
executable file
·60 lines (43 loc) · 1.34 KB
/
run
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
make
query=$1
if [ "$#" -ne 1 ]; then
query=all
fi
echo $query
# $dir - the directory for different data set
# $k - the memory for lip k
# $i - each individual run
# $dir/lip_$i
# $dir/lip-$k_$i
# $dir/hash_$i
declare -a arr=("uniform")
for i in `seq 1 5`;
do
for dir in "${arr[@]}"
do
alg=hash
echo "iteration $i $dir $alg"...
./apps/app $query $alg "$dir" 1 > scripts/data/$dir/hash_${i}
alg=lip
echo "iteration $i $dir $alg"...
./apps/app $query $alg "$dir" 1 > scripts/data/$dir/lip_${i}
alg=lip1
echo "iteration $i $dir $alg"...
./apps/app $query $alg "$dir" 1 > scripts/data/$dir/lip-1_${i}
alg=lip10
echo "iteration $i $dir $alg"...
./apps/app $query $alg "$dir" 1 > scripts/data/$dir/lip-10_${i}
alg=lip20
echo "iteration $i $dir $alg"...
./apps/app $query $alg "$dir" 1 > scripts/data/$dir/lip-20_${i}
alg=lip50
echo "iteration $i $dir $alg"...
./apps/app $query $alg "$dir" 1 > scripts/data/$dir/lip-50_${i}
alg=lip80
echo "iteration $i $dir $alg"...
./apps/app $query $alg "$dir" 1 > scripts/data/$dir/lip-80_${i}
alg=lip100
echo "iteration $i $dir $alg"...
./apps/app $query $alg "$dir" 1 > scripts/data/$dir/lip-100_${i}
done
done