-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_synthetic_vary-n.sh
27 lines (23 loc) · 1022 Bytes
/
run_synthetic_vary-n.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
#!/bin/bash
if [ "$#" -lt 3 ]; then
echo
echo "Usage: $0 NUM_BITS STRATEGY NUM_RUNS [SORTED]"
echo
exit
fi
b=$(echo $2 | tr a-z A-Z)
qfile="queries/synthetic/synthetic_d128M_qe0.1%_qn1K.qry"
for n in 50 100 500 1000
do
prefix="synthetic_d128M_n${n}M_a1.2_s1M"
ifile="inputs/synthetic/${prefix}.inp"
if [ "$#" -eq 3 ]; then
ofile="outputs/synthetic/${prefix}_qe0.1%_qn1K_oSUBS+SORT+SS+CM_m$1_qGOVERLAPS_b${b}.out"
echo "./query_batch.exec -m $1 -b $b -r $3 $ifile $qfile > $ofile"
./query_batch.exec -m $1 -b $2 -r $3 $ifile $qfile > $ofile
elif [ "$#" -eq 4 ] && ([ $4 = "SORTED" ] || [ $4 = "sorted" ]); then
ofile="outputs/synthetic/${prefix}_qe0.1%_qn1K_oSUBS+SORT+SS+CM_m$1_qGOVERLAPS_b${b}_withSORT.out"
echo "./query_batch.exec -m $1 -b $b -r $3 -s $ifile $qfile > $ofile"
./query_batch.exec -m $1 -b $2 -r $3 -s $ifile $qfile > $ofile
fi
done