]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt-w.sh
Gzip ramdisk - booting is faster
[can-benchmark.git] / tests / rtt-w.sh
index a91308b4f2f28f80201c0e89c4d26e993dc9dde0..c196b7aa7efa1f9dfef3d7c12c9a43d15b82f98a 100755 (executable)
@@ -12,16 +12,17 @@ t() {
 
 
 
 
 
 
-PLOT_CMD='
-set title "Round-trip time depending on delay between sends"
+p() { cat <<EOF
+set title "Round-trip time depending on delay between response reception and next send"
 set logscale y
 set grid
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 set ylabel "Latency profile [messages]"
-plot [0:] "socketcan-0-1000.dat" with lp lt 1 title "Socketcan 0",\
-          "lincan-0-1000.dat" with lp lt 2 title "Lincan 0",\
-          "socketcan-1-1000.dat" with lp lt 1 title "Socketcan 1",\
-          "lincan-1-1000.dat" with lp lt 2 title "Lincan 1",\
-          "socketcan-2-1000.dat" with lp lt 1 title "Socketcan 2",\
-          "lincan-2-1000.dat" with lp lt 2 title  "Lincan 2"
-'
+plot [0:] "socketcan-0-1000.dat" with lp lt 1 title "Socketcan - 0 ms delay",\
+          "lincan-0-1000.dat" with lp lt 2 title "Lincan -  0 ms delay",\
+          "socketcan-1-1000.dat" with lp lt 1 title "Socketcan -  1 ms delay",\
+          "lincan-1-1000.dat" with lp lt 2 title "Lincan -  1 ms delay",\
+          "socketcan-2-1000.dat" with lp lt 1 title "Socketcan -  2 ms delay",\
+          "lincan-2-1000.dat" with lp lt 2 title  "Lincan -  2 ms delay"
+EOF
+}