]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/vcan.sh
Plot graphs with cairo - it is faster and nicer
[can-benchmark.git] / gw-tests / vcan.sh
index ff7b967a5f6222d40f21428a6099b451588fbf00..d44504ae6137a63c2cd99dd3d33f37882b43be92 100755 (executable)
@@ -2,7 +2,7 @@
 
 . lib.sh
 
 
 . lib.sh
 
-numjobs=`seq 0 2 10`
+numjobs=`seq 0 2 12`
 
 main() {
     sshgw 'ip link add dev vcan0 type vcan && ip link set vcan0 up'
 
 main() {
     sshgw 'ip link add dev vcan0 type vcan && ip link set vcan0 up'
@@ -14,27 +14,23 @@ main() {
        done
        sshgw cangw -A -s vcan0 -d can1 -f $(printf %x:C00007FF $i)
 
        done
        sshgw cangw -A -s vcan0 -d can1 -f $(printf %x:C00007FF $i)
 
-       latester -d can0 -d can1 -d can2 -o -c $COUNT -i 0 -h hist-$i.dat -f time-$i.dat
-
-       echo
-       sshgw cangw -L
-
+       latester -d can0 -d can1 -d can2 -c $COUNT -i 0 -n hops$i
     done
     sshgw ip link del dev vcan0
 }
 
 plot_cmds() {
     cat <<EOF
     done
     sshgw ip link del dev vcan0
 }
 
 plot_cmds() {
     cat <<EOF
-set title "Chained GWs on a signle VCAN interface"
+set title "Chained GW jobs on a signle VCAN interface"
 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:1500] [1:$COUNT] \\
+plot [0:10] [1:$COUNT] \\
 EOF
 EOF
-    lt=1
+    lt=2
     for i in $numjobs; do
     for i in $numjobs; do
-       echo_plot "\"hist-$i.dat\" with lp lt $lt title \"$i GW jobs on vcan\""
+       echo_plot "\"hops$i-hist.txt\" with lp lt $lt title \"$((i+2)) GW jobs, 1 vcan\""
         lt=$((lt+1))
     done
 }
         lt=$((lt+1))
     done
 }