]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/nop.sh
Generate detail of filter-sff
[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 ADDITIONAL_PLOTS=detail
14
15 plot_cmds() {
16     if [[ "$1" = detail ]]; then
17         range=0.06:0.3
18         echo "set logscale y"
19     else
20         range=0.05:100
21         echo "set logscale xy"
22     fi
23     cat <<EOF
24 set title "Single GW job for all messages, no modifications"
25 set grid xtics mxtics ytics mytics lw 1, lw 0.5
26 set xlabel "Time [ms]"
27 set ylabel "Latency profile [messages]"
28 plot [$range] [1:$COUNT] \
29           "len2-hist.txt" with lp lt 1 title "2 byte messages", \
30           "len4-hist.txt" with lp lt 2 title "4 byte messages", \
31           "len6-hist.txt" with lp lt 3 title "6 byte messages", \
32           "len8-hist.txt" with lp lt 4 title "8 byte messages"
33 EOF
34 }
35     
36 test_end
37