]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/ethflood64k.sh
Be less verbose
[can-benchmark.git] / tests / ethflood64k.sh
1 #!/bin/bash
2
3 . _lib.sh
4
5 t() {
6     ssh root@${SSH_CONNECTION%% *} 'ping -qfs 64000 "${SSH_CONNECTION%% *}"' &
7     PID_PING=$!
8     PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
9     vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 2 -c 10000
10     kill $PID_S
11     kill $PID_PING
12 }
13
14
15
16 PLOT_CMD='
17 set title "Round-trip time with ethenet load - ping -fs 64000 (`uname -r`)"
18 set logscale y
19 set grid
20 set xlabel "Time [{/Symbol m}s]"
21 set ylabel "Latency profile [messages]"
22 plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
23           "lincan-1000.dat" with lp title "Lincan"
24 '
25