tor_multipath_voip/scripts/parse_lib.sh

19 lines
373 B
Bash
Raw Normal View History

2019-09-05 12:45:28 +00:00
get_xp() {
grep -rn "identifier=$1" ./out/*/info.txt|grep -Po "^./out/\w+"|grep -Po '\w+$$'|uniq
}
extract_us() {
grep -Po '\d+µs' ./out/$1-$2/res/*.csv | grep -Po '\d+'
}
2019-09-05 12:54:54 +00:00
parse_latency() {
echo "run,conf,latency"
get_xp $1 | while read r; do
for i in $(seq 0 1 $2); do
extract_us $r $i | while read l; do
echo $r,$i,$l;
done
done
done
}