]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/mod.sh
Changed graphs to be more internally consistent.
[can-benchmark.git] / gw-tests / mod.sh
index 6a870e6b9fa3b26aeb90eb1b295cb32121a021e5..6f01c8134ac6c5b720b6bedad299864e9b419d22 100755 (executable)
@@ -37,19 +37,28 @@ main() {
     latester $LATESTER_OPTS -n modcscrc8
 }
 
+ADDITIONAL_PLOTS=detail
+
 plot_cmds() {
+    if [[ "$1" = detail ]]; then
+       range=0.0:0.3
+       echo "set logscale y"
+       echo "set key left bottom reverse Left"
+    else
+       range=0.01:100
+       echo "set logscale xy"
+    fi
     cat <<EOF
-set title "Single GW job for all messages with modifications, 8 byte messages"
-set logscale y
-set grid
-set xlabel "Time [ms]"
-set ylabel "Latency profile [messages]"
-plot [0:600] [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", \
-          "modcsxor-hist.txt" with lp lt 4 title "Four modifications and XOR checksum",\
-          "modcscrc8-hist.txt" with lp lt 5 title "Four modifications and CRC8 checksum"
+set title "Single GW rule for all messages with modifications, 8 byte messages"
+set grid xtics mxtics ytics mytics lw 1, lw 0.5
+set xlabel "GW latency [ms]"
+set ylabel "Latency profile [frames]"
+plot [$range] [1:$COUNT] \\
+          "nop-hist.txt" $using with lp lt 1 title "No modifications", \\
+          "mod-hist.txt" $using with lp lt 2 title "Two modifications", \\
+          "mod2-hist.txt" $using with lp lt 3 title "Four modifications", \\
+          "modcsxor-hist.txt" $using with lp lt 4 title "Four modifications and XOR checksum",\\
+          "modcscrc8-hist.txt" $using with lp lt 5 title "Four modifications and CRC8 checksum"
 EOF
 }