]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/nop.sh
Do not generate .result
[can-benchmark.git] / gw-tests / nop.sh
1 #!/bin/bash
2
3 . lib.sh
4
5 main() {
6     sshgw cangw -A -s can0 -d can1
7     latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 2) -n len2
8     latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 4) -n len4
9     latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 6) -n len6
10     latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -n len8
11 }
12
13 plot_cmds() {
14     cat <<EOF
15 set title "Single GW job for all messages, no modifications"
16 set logscale y
17 set grid
18 set xlabel "Time [ms]"
19 set ylabel "Latency profile [messages]"
20 plot [0:1] [1:$COUNT] \
21           "len2-hist.txt" with lp lt 1 title "2 byte messages", \
22           "len4-hist.txt" with lp lt 2 title "4 byte messages", \
23           "len6-hist.txt" with lp lt 3 title "6 byte messages", \
24           "len8-hist.txt" with lp lt 4 title "8 byte messages"
25 EOF
26 }
27     
28 test_end
29