From 8376a4aa45fbfcbdbc9e0fb18a9ed30a0a799ce8 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sat, 11 Oct 2025 22:22:27 +0200 Subject: [PATCH] report cleaning --- candles.gp | 4 ++-- generatecandle.sh | 2 +- generatedoc.sh | 8 +++++--- generateplot.sh | 6 +++--- histogram.gp | 4 ++-- rawmeasures.gp | 4 ++-- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/candles.gp b/candles.gp index b35579f..047b160 100644 --- a/candles.gp +++ b/candles.gp @@ -5,7 +5,7 @@ reset data = 'DATA' -set title "Test NAME - Dedicated core(s) (CORE)" +set title "Test TITLE - Dedicated core(s) (CORE)" set xlabel 'load (%)' set ylabel 'latency (µs)' set format y "%.1f" @@ -16,7 +16,7 @@ set style fill empty plot [-5:105] [0:] data using 1:6:2:4:8 with candlesticks lw 2 title "Quartiles", \ data using 1:7:7:7:7 with candlesticks lt -1 lw 2 title "Median" -pause 5 "please wait 5s" +#pause 5 "please wait 5s" #set term png medium #set term png font "arial" diff --git a/generatecandle.sh b/generatecandle.sh index adf1899..93d8c2e 100755 --- a/generatecandle.sh +++ b/generatecandle.sh @@ -13,7 +13,7 @@ for csv; do awk -F, '$1 == "'"$title"'" { sub (/[^,]*,/, ""); gsub (/,/, " "); print }' $csv > $name.tab cat $base/candles.gp | \ - m4 -D CORE="$core" -D DATA="$name.tab" -D NAME="$name" | \ + m4 -D CORE="$core" -D DATA="$name.tab" -D TITLE="$title" | \ gnuplot > "$output" done done diff --git a/generatedoc.sh b/generatedoc.sh index 465398b..2054852 100755 --- a/generatedoc.sh +++ b/generatedoc.sh @@ -3,7 +3,7 @@ base=$(cd $(dirname $0); pwd) echo "" -echo "Appendix" +echo "Appendix" echo "" for tab; do @@ -16,18 +16,20 @@ for tab; do echo "

Statistic summary

" echo "" - echo "" + echo "" echo "" awk '{ printf ""; for (i=0; i%s", $(i+1); printf "\n" }' $tab echo "" echo "
Load
(%)
Minimum
(us)
Average
(us)
Maximun
(us)
Standard Dev.
(us)
25th %
(us)
Median
(us)
75th %
(us)
Load
(%)
Minimum
(us)
Average
(us)
Maximun
(us)
Standard Dev.
(us)
25th %
(us)
Median
(us)
75th %
(us)
" - echo "" + echo "
" for load in $(cat $tab | cut -f1 -d\ ); do echo "

Measures with load of $load%

" + echo "
" echo "" echo "" + echo "
" done done diff --git a/generateplot.sh b/generateplot.sh index 161710b..f0d08ea 100755 --- a/generateplot.sh +++ b/generateplot.sh @@ -5,17 +5,17 @@ base=$(cd $(dirname $0); pwd) for data; do log=$(echo $data | sed 's/\.dat/.log/') - name=$(awk '/Test:/ { sub(/[^:]*: /, ""); print}' $log) + title=$(awk '/Test:/ { sub(/[^:]*: /, ""); print}' $log) core=$(awk -F: '/Dedicated core/ { print ($2 == 0) ? "any core" : $2 " core" ($2 > 1 ? "s" : "") }' $log) load=$(echo $data | sed 's/.*-\([0-9]*\)%.*/\1%/') output=$(echo $data | sed 's/\.dat/-raw.pdf/') cat $base/rawmeasures.gp | \ - m4 -D CORE="$core" -D DATA="$data" -D LOAD="$load" -D NAME="$name" | \ + m4 -D CORE="$core" -D DATA="$data" -D LOAD="$load" -D TITLE="$title" | \ gnuplot > $output output=$(echo $data | sed 's/\.dat/-hist.pdf/') cat $base/histogram.gp | \ - m4 -D CORE="$core" -D DATA="$data" -D LOAD="$load" -D NAME="$name" | \ + m4 -D CORE="$core" -D DATA="$data" -D LOAD="$load" -D TITLE="$title" | \ gnuplot > $output done diff --git a/histogram.gp b/histogram.gp index ef285e8..60b92b6 100644 --- a/histogram.gp +++ b/histogram.gp @@ -7,7 +7,7 @@ stats data nooutput nb = STATS_records f(x) = x / 1000. -set title "Test NAME - Load LOAD - Dedicated core(s) (CORE)" +set title "Test TITLE - Load LOAD - Dedicated core(s) (CORE)" set xlabel 'latency (µs)' set ylabel '# of tests (%)' set format x "%.1f" @@ -16,7 +16,7 @@ set style histogram rowstacked gap 0 set style fill solid 0.5 border lt -1 plot [0:] data using (f($1)):(100./nb) smooth freq with boxes notitle -pause 5 "please wait 5s" +#pause 5 "please wait 5s" #set term png medium #set term png font "arial" diff --git a/rawmeasures.gp b/rawmeasures.gp index b2e2770..2afda02 100644 --- a/rawmeasures.gp +++ b/rawmeasures.gp @@ -5,7 +5,7 @@ reset data = 'DATA' -set title "Test NAME - Load LOAD - Dedicated core(s) (CORE)" +set title "Test TITLE - Load LOAD - Dedicated core(s) (CORE)" set xlabel 'tests' set ylabel 'latency (µs)' set format y "%.1f" @@ -15,7 +15,7 @@ f(x) = x / 1000 set style data line plot [:] [0:] data using (f($1)) notitle -pause 5 "please wait 5s" +#pause 5 "please wait 5s" #set term png medium #set term png font "arial" -- 2.30.2