tor_multipath_voip/scripts/generate_csv

25 lines
2 KiB
Plaintext
Raw Normal View History

2019-03-28 20:13:32 +00:00
#!/bin/bash
2019-04-03 09:47:59 +00:00
echo "orig latencies global"
2019-04-03 09:49:45 +00:00
{ echo "delta" ; ls|grep '^orig-'|while read -r line; do cat $line/res/orig.csv|grep -Po "\d*µs"|grep -Po "\d*"; done } > orig_latencies_global.csv
2019-04-03 09:47:59 +00:00
echo "orig latencies distri"
2019-04-03 09:49:45 +00:00
{ echo "hs,type,delta";ls|grep '^orig-'|while read -r line; do cat $line/res/orig.csv|grep -Po "\d*µs"|grep -Po "\d*"|python3 ./format-data.py $line; done } > orig_latencies_distri.csv
2019-04-03 09:47:59 +00:00
2019-03-28 20:13:32 +00:00
echo "naive latencies global"
2019-04-03 09:49:45 +00:00
{ echo "delta" ; ls|grep '^naive-'|while read -r line; do cat $line/res/naive.csv|grep -Po "\d*µs"|grep -Po "\d*"; done } > naive_latencies_global.csv
2019-03-28 20:13:32 +00:00
echo "naive latencies distri"
2019-04-03 09:49:45 +00:00
{ echo "hs,type,delta";ls|grep '^naive-'|while read -r line; do cat $line/res/naive.csv|grep -Po "\d*µs"|grep -Po "\d*"|python3 ./format-data.py $line; done } > naive_latencies_distri.csv
2019-04-03 09:47:59 +00:00
echo "rr latencies global"
2019-04-03 09:49:45 +00:00
{ echo "delta" ; ls|grep '^rr-'|while read -r line; do cat $line/res/rr.csv|grep -Po "\d*µs"|grep -Po "\d*"; done } > rr_latencies_global.csv
2019-04-03 09:47:59 +00:00
echo "rr latencies distri"
2019-04-03 09:49:45 +00:00
{ echo "hs,type,delta";ls|grep '^rr-'|while read -r line; do cat $line/res/rr.csv|grep -Po "\d*µs"|grep -Po "\d*"|python3 ./format-data.py $line; done } > rr_latencies_distri.csv
2019-04-03 13:35:16 +00:00
{ echo 'run,rcv' ; ls|grep '^rr-'|while read -r line; do echo -n "$line,"; cat $line/res/rr.csv|grep -Po "\d*µs"|grep -Po "\d*"|wc -l; done } > rr_lost.csv
2019-04-03 09:47:59 +00:00
echo "rrh latencies global"
2019-04-03 09:49:45 +00:00
{ echo "delta" ; ls|grep '^rrh-'|while read -r line; do cat $line/res/rrh.csv|grep -Po "\d*µs"|grep -Po "\d*"; done } > rrh_latencies_global.csv
2019-04-03 09:47:59 +00:00
echo "rrh latencies distri"
2019-04-03 09:49:45 +00:00
{ echo "hs,type,delta";ls|grep '^rrh-'|while read -r line; do cat $line/res/rrh.csv|grep -Po "\d*µs"|grep -Po "\d*"|python3 ./format-data.py $line; done } > rrh_latencies_distri.csv
2019-04-03 13:35:16 +00:00
{ echo 'run,rcv' ; ls|grep '^rrh-'|while read -r line; do echo -n "$line,"; cat $line/res/rrh.csv|grep -Po "\d*µs"|grep -Po "\d*"|wc -l; done } > rrh_lost.csv
2019-04-04 09:41:43 +00:00
{ echo "run,dead_links"; ls|grep '^rrh-'|while read line; do echo -n "$line,"; grep -Po 'Blacklist link=\d' $line/log/server-donar-stdout.log | sort | uniq -c | wc -l; done } > rrh_blacklisted.csv