]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/mod.sh
Minor fixes and additional graphs
[can-benchmark.git] / gw-tests / mod.sh
index 0a338d691c0ff7455f2c2ace438df6a057bd47a2..53d0116be5a0b56368a2e59beb793384c38b4843 100755 (executable)
@@ -37,14 +37,23 @@ main() {
     latester $LATESTER_OPTS -n modcscrc8
 }
 
+ADDITIONAL_PLOTS=detail
+
 plot_cmds() {
+    if [[ "$1" = detail ]]; then
+       range=0.14:0.2
+       echo "set logscale y"
+       echo "set key left bottom reverse Left"
+    else
+       range=0.05:100
+       echo "set logscale xy"
+    fi
     cat <<EOF
 set title "Single GW job for all messages with modifications, 8 byte messages"
-set logscale xy
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-plot [0.05:100] [1:$COUNT] \
+plot [$range] [1:$COUNT] \
           "nop-hist.txt" with lp lt 1 title "No modifications", \
           "mod-hist.txt" with lp lt 2 title "Two modifications", \
           "mod2-hist.txt" with lp lt 3 title "Four modifications", \