--- /dev/null
+# -- gnuplot --
+# Plot statistic candles
+
+reset
+
+data = 'DATA'
+
+set title "Test NAME - Dedicated core(s) (CORE)"
+set xlabel 'load (%)'
+set ylabel 'latency (µs)'
+set format y "%.1f"
+set key left top
+
+set errorbars 4.0
+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"
+
+#set term png medium
+#set term png font "arial"
+set term pdfcairo font "Arial"
+replot
--- /dev/null
+#!/bin/sh
+
+tmp=$(mktemp)
+
+for csv; do
+ core="any core"
+ sed 1d $csv | cut -d, -f1 | sort | uniq | while IFS=$'\n' read name; do
+ output=$(echo $name| awk '{ print tolower($1) }').pdf
+ awk -F, '$1 == "'"$name"'" { sub (/[^,]*,/, ""); gsub (/,/, " "); print }' $csv > $tmp
+
+ cat candles.gp | \
+ m4 -D CORE="$core" -D DATA="$tmp" -D NAME="$name" | \
+ gnuplot > "$output"
+ done
+done
+
+rm -f $tmp
--- /dev/null
+#!/bin/sh
+
+for data; do
+ log=$(echo $data | sed 's/\.dat/.log/')
+
+ name=$(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 rawmeasures.gp | \
+ m4 -D CORE="$core" -D DATA="$data" -D LOAD="$load" -D NAME="$name" | \
+ gnuplot > $output
+
+ output=$(echo $data | sed 's/\.dat/-hist.pdf/')
+ cat histogram.gp | \
+ m4 -D CORE="$core" -D DATA="$data" -D LOAD="$load" -D NAME="$name" | \
+ gnuplot > $output
+done
--- /dev/null
+# -- gnuplot --
+# Plot histogram
+
+data = 'DATA'
+
+stats data nooutput
+nb = STATS_records
+f(x) = x / 1000.
+
+set title "Test NAME - Load LOAD - Dedicated core(s) (CORE)"
+set xlabel 'latency (µs)'
+set ylabel '# of tests (%)'
+set format x "%.1f"
+
+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"
+
+#set term png medium
+#set term png font "arial"
+set term pdfcairo font "Arial"
+replot
--- /dev/null
+# -- gnuplot --
+# Plot raw measures
+
+reset
+
+data = 'DATA'
+
+set title "Test NAME - Load LOAD - Dedicated core(s) (CORE)"
+set xlabel 'tests'
+set ylabel 'latency (µs)'
+set format y "%.1f"
+
+f(x) = x / 1000
+
+set style data line
+plot [:] [0:] data using (f($1)) notitle
+
+pause 5 "please wait 5s"
+
+#set term png medium
+#set term png font "arial"
+set term pdfcairo font "Arial"
+replot
tar cvzf result-$date.tgz *.dat *.log
./gettable.sh > result-$date.csv
scp result-$date.tgz result-$date.csv mazet@192.168.1.1:smile
+ssh mazet@192.168.1.1 sh -c "LC_ALL=C libreoffice --convert-to xlsx $smile/result-$date.csv"