]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/vcans.sh
Plot graphs with cairo - it is faster and nicer
[can-benchmark.git] / gw-tests / vcans.sh
index 153529dab430a8a72c4a26e8529633460a2e2318..e49bfdac4bc0b62362cc4b38d5f128aa332800a2 100755 (executable)
@@ -2,7 +2,7 @@
 
 . lib.sh
 
 
 . lib.sh
 
-numjobs=`seq 1 2 10`
+numjobs=" 1 `seq 2 2 10`"
 
 main() {
     for i in $numjobs; do
 
 main() {
     for i in $numjobs; do
@@ -15,22 +15,22 @@ main() {
        done
        sshgw cangw -A -s $lastif -d can1 -f $(printf %x:C00007FF $((i-1)))
 
        done
        sshgw cangw -A -s $lastif -d can1 -f $(printf %x:C00007FF $((i-1)))
 
-       latester -d can0 -d can1 -d can2 -o -c $COUNT -i 0 -h hist-$i.dat -f time-$i.dat
+       latester -d can0 -d can1 -d can2 -c $COUNT -i 0 $(traffic_and_length 2) -n hops$i
     done
 }
 
 plot_cmds() {
     cat <<EOF
     done
 }
 
 plot_cmds() {
     cat <<EOF
-set title "Chained GWs on multiple VCAN interfaces"
+set title "Chained GW jobs on multiple VCAN interfaces"
 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:1000] [1:$COUNT] \\
+plot [0:1] [1:$COUNT] \\
 EOF
     lt=1
     for i in $numjobs; do
 EOF
     lt=1
     for i in $numjobs; do
-       echo_plot "\"hist-$i.dat\" with lp lt $lt title \"$i GW jobs\""
+       echo_plot "\"hops$i-hist.txt\" with lp lt $lt title \"$i GW jobs, $((i-1)) vcans\""
         lt=$((lt+1))
     done
 }
         lt=$((lt+1))
     done
 }