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"
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"
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
base=$(cd $(dirname $0); pwd)
echo "<html>"
-echo "<head><title>Appendix</title></head>"
+echo "<head><title>Appendix</title><style>td{text-align:right;}div{text-align:center;}</style></head>"
echo "<body>"
for tab; do
echo "<h3>Statistic summary</h3>"
echo "<table border=\"1\" cellpadding=\"5\" cellspacing=\"2\" width=\"100%\">"
- echo "<thead><tr><th>Load<br>(%)</th><th>Minimum<br>(us)</th><th>Average<br>(us)</th><th>Maximun<br>(us)</th><th>Standard Dev.<br>(us)</th><th>25th %<br>(us)</th><th>Median<br>(us)</th><th>75th %<br>(us)</th></tr></thead>"
+ echo "<thead><tr><th width=\"12%\">Load<br>(%)</th><th width=\"12%\">Minimum<br>(us)</th><th width=\"12%\">Average<br>(us)</th><th width=\"12%\">Maximun<br>(us)</th><th width=\"12%\">Standard Dev.<br>(us)</th><th width=\"12%\">25th %<br>(us)</th><th width=\"12%\">Median<br>(us)</th><th width=\"12%\">75th %<br>(us)</th></tr></thead>"
echo "<tbody>"
awk '{ printf "<tr>"; for (i=0; i<NF; i++) printf "<td>%s</td>", $(i+1); printf "</tr>\n" }' $tab
echo "</tbody>"
echo "</table>"
- echo "<a href=\"$test.pdf\"><img src=\"$test.png\" width=\"80%\"/></a>"
+ echo "<div><a href=\"$test.pdf\"><img src=\"$test.png\" width=\"80%\"/></a></div>"
for load in $(cat $tab | cut -f1 -d\ ); do
echo "<h3>Measures with load of $load%</h3>"
+ echo "<div>"
echo "<a href=\"$test-$load%-raw.pdf\"><img src=\"$test-$load%-raw.png\" width=\"49%\"/></a>"
echo "<a href=\"$test-$load%-hist.pdf\"><img src=\"$test-$load%-hist.png\" width=\"49%\"/></a>"
+ echo "</div>"
done
done
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
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"
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"
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"
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"