Improve greping in generate_csv
This commit is contained in:
parent
04412f3c45
commit
cf6f88f7db
1 changed files with 8 additions and 8 deletions
|
@ -1,23 +1,23 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "orig latencies global"
|
echo "orig latencies global"
|
||||||
{ 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
|
{ 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
|
||||||
echo "orig latencies distri"
|
echo "orig latencies distri"
|
||||||
{ 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
|
{ 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
|
||||||
|
|
||||||
echo "naive latencies global"
|
echo "naive latencies global"
|
||||||
{ 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
|
{ 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
|
||||||
echo "naive latencies distri"
|
echo "naive latencies distri"
|
||||||
{ 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
|
{ 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
|
||||||
|
|
||||||
echo "rr latencies global"
|
echo "rr latencies global"
|
||||||
{ 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
|
{ 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
|
||||||
echo "rr latencies distri"
|
echo "rr latencies distri"
|
||||||
{ 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
|
{ 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
|
||||||
|
|
||||||
echo "rrh latencies global"
|
echo "rrh latencies global"
|
||||||
{ 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
|
{ 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
|
||||||
echo "rrh latencies distri"
|
echo "rrh latencies distri"
|
||||||
{ 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
|
{ 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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue