]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Plot mod detail in microseconds
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 22 Dec 2010 08:09:07 +0000 (09:09 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 22 Dec 2010 08:09:07 +0000 (09:09 +0100)
gw-tests/mod.sh

index 53d0116be5a0b56368a2e59beb793384c38b4843..b045407f88add0d344028577b2c848b8e0caaaff 100755 (executable)
@@ -41,24 +41,27 @@ ADDITIONAL_PLOTS=detail
 
 plot_cmds() {
     if [[ "$1" = detail ]]; then
-       range=0.14:0.2
+       range=140:200
        echo "set logscale y"
        echo "set key left bottom reverse Left"
+       echo "set xlabel 'Time [{/Symbol m}s]'"
+       using="using (\$1*1000):2"
     else
        range=0.05:100
        echo "set logscale xy"
+       echo "set xlabel 'Time [ms]'"
+       using=""
     fi
     cat <<EOF
 set title "Single GW job for all messages with modifications, 8 byte messages"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
-set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 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", \
-          "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"
+          "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
 }