tor_multipath_voip/scripts/parse_lib.sh
2019-09-05 14:54:54 +02:00

18 lines
373 B
Bash

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+'
}
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
}