Improve code
This commit is contained in:
parent
5f4f7be4f0
commit
a317deccae
2 changed files with 14 additions and 11 deletions
|
@ -1,16 +1,8 @@
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
.SILENT: test
|
|
||||||
|
|
||||||
test:
|
tor_bw_small_parse:
|
||||||
echo "run,conf,latency"
|
@. parse_lib.sh && \
|
||||||
. parse_lib.sh && \
|
parse_latency tor_bw_small 3
|
||||||
get_xp tor_bw_small | while read r; do \
|
|
||||||
for i in 0 1 2 3; do \
|
|
||||||
extract_us $$r $$i | while read l; do \
|
|
||||||
echo $$r,$$i,$$l;\
|
|
||||||
done; \
|
|
||||||
done; \
|
|
||||||
done;
|
|
||||||
|
|
||||||
tor_bw_small:
|
tor_bw_small:
|
||||||
./run-3 \
|
./run-3 \
|
||||||
|
|
|
@ -5,3 +5,14 @@ get_xp() {
|
||||||
extract_us() {
|
extract_us() {
|
||||||
grep -Po '\d+µs' ./out/$1-$2/res/*.csv | grep -Po '\d+'
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue