]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/user.sh
Modification of *-time tests so that they don't break if the test was skipped.
[can-benchmark.git] / gw-tests / user.sh
index 45e57ae5de6c293b88626664b2972ce680b2ec3d..984a28d6e90e46ce7c2b3268cc96abee5e8c09a0 100755 (executable)
@@ -18,23 +18,28 @@ ADDITIONAL_PLOTS=detail
 plot_cmds() {
     if [[ "$1" = detail ]]; then
        [[ $traffic = eth ]] && return
-       range=0.05:0.5
+       range=0.0:0.5
        echo "set logscale y"
        echo "set mxtics 5"
     else
-       range=0.05:1000
+       range=0.01:1000
        echo "set logscale xy"
     fi
     cat <<EOF
+set termoption dashed
+set style line 1 lt 1 lc 1 pt 1
+set style line 2 lt 2 lc 1 pt 1
+set style line 3 lt 1 lc 2 pt 2
+set style line 4 lt 2 lc 2 pt 2
 set title "Kernel vs. userspace GW, no modifications"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
-set xlabel "Time [ms]"
-set ylabel "Latency profile [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", \
-          "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"
+set xlabel "GW latency [ms]"
+set ylabel "Latency profile [frames]"
+plot [$range] [1:$COUNT] \\
+          "user2-hist.txt" with lp ls 1 title "Userspace GW, 2 byte messages", \\
+          "user8-hist.txt" with lp ls 2 title "Userspace GW, 8 byte messages", \\
+          "kern2-hist.txt" with lp ls 3 title "Kernel GW, 2 byte messages", \\
+          "kern8-hist.txt" with lp ls 4 title "Kernel GW, 8 byte messages"
 EOF
 }