]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/user.sh
No not plot so many jobs
[can-benchmark.git] / gw-tests / user.sh
index 18e673088317a08f5e2d2aae280f611903b75e26..2e7b5bf33f09a3ce176e340ba9d94f080726ba87 100755 (executable)
@@ -12,18 +12,28 @@ main() {
     latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -n kern8
 }
 
+ADDITIONAL_PLOTS=detail
+
 plot_cmds() {
+    if [[ "$1" = detail ]]; then
+       [[ $traffic = eth ]] && return
+       range=0.05:0.5
+       echo "set logscale y"
+       echo "set mxtics 5"
+    else
+       range=0.05:1000
+       echo "set logscale xy"
+    fi
     cat <<EOF
 set title "Kernel vs. userspace GW, no modifications"
-set logscale y
-set grid
+set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-plot [0:] [1:$COUNT] \
-          "kern2-hist.txt" with lp lt 1 title "Kernel GW, 2 byte messages", \
-          "kern8-hist.txt" with lp lt 2 title "Kernel GW, 8 byte messages", \
+plot [$range] [1:$COUNT] \
           "user2-hist.txt" with lp lt 1 title "Userspace GW, 2 byte messages", \
-          "user8-hist.txt" with lp lt 2 title "Userspace GW, 8 byte messages"
+          "user8-hist.txt" with lp lt 2 title "Userspace GW, 8 byte messages", \
+          "kern2-hist.txt" with lp lt 1 title "Kernel GW, 2 byte messages", \
+          "kern8-hist.txt" with lp lt 2 title "Kernel GW, 8 byte messages"
 EOF
 }