report cleaning
authorLaurent Mazet <mazet@softndesign.org>
Sat, 11 Oct 2025 20:22:27 +0000 (22:22 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sat, 11 Oct 2025 20:22:27 +0000 (22:22 +0200)
candles.gp
generatecandle.sh
generatedoc.sh
generateplot.sh
histogram.gp
rawmeasures.gp

index b35579faf1814eefbbcb8f514efb5c869e5f2c0d..047b1606b7c0f4750738121e92f8d45ee569d7b0 100644 (file)
@@ -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"
index adf1899f226591741e74120e1fb35a0b827a94f5..93d8c2e12b56b3682db0367bb4f165e61549dbbc 100755 (executable)
@@ -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
index 465398bd1f8ee24d692661985ef9bed1715ed8aa..205485245efebfecc5f94d45475784638ec77680 100755 (executable)
@@ -3,7 +3,7 @@
 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
@@ -16,18 +16,20 @@ 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
index 161710b4ffd58a84e661cbfae1bfc9301a49cba8..f0d08ea0c672ae39193c5eb270716f812f7b3984 100755 (executable)
@@ -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
index ef285e82e393981d6d38ddf56c858650e7e6a1df..60b92b6bcea0c903c73aaa1e3ace1f0d462d43e9 100644 (file)
@@ -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"
index b2e277013cc6b50bb1dae418c088d1cdd05fd8b2..2afda022f4b4bf6dee8f2008edbecec32150b5bc 100644 (file)
@@ -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"