-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_des.sh
30 lines (23 loc) · 815 Bytes
/
run_des.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
# USAGE: ./run.sh var
# var: print statistics for indicated variable (default #txs)
# need complete enough name for grep to find unambiguously (e.g. '#txs' works, 'txs' doesn't)
if [ -z $1 ]
then
var="\#net"
else
var=$1
fi
echo $var
num_procs=(1 2 4 8 16 32 40 64 80)
depdist=(100 1000 10000)
echo "depdist,#procs,spray,lotan_shavit,linden"
for j in "${depdist[@]}"
do
for i in "${num_procs[@]}"
do
spray[$i]=`bin/spray -e $j -l -i 2000000 -u 100 -d 100 -n $i | grep $var | grep '(?<= )[0-9]+' -Po`
lotan_shavit[$i]=`bin/spray -e $j -p -i 2000000 -u 100 -d 100 -n $i | grep $var | grep '(?<= )[0-9]+' -Po`
linden[$i]=`bin/spray -e $j -L -i 2000000 -u 100 -d 100 -n $i | grep $var | grep '(?<= )[0-9]+' -Po`
echo $j,$i,${spray[$i]},${lotan_shavit[$i]},${linden[$i]}
done
done