]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/gw-filter-sff.sh
Merge branch 'master' of rtime.felk.cvut.cz:/can-benchmark
[can-benchmark.git] / gw-tests / gw-filter-sff.sh
1 #!/bin/bash
2
3 . lib.sh
4
5 ids=$(seq 0 256 2047)
6
7 main() {
8     sshgw 'for i in `seq 0 2047`; do cangw -A -s can0 -d can1 -f $(printf %x $i):c00007ff; done'
9     for i in $ids; do
10         latester -d can0 -d can1 -d can2 -o -c $COUNT -i $i -h hist-$i.dat -f time-$i.dat
11     done
12 }
13
14 plot_cmds() {
15     cat <<EOF
16 set title "Single GW, no modifications, 2048 filters (one per id)"
17 set logscale y
18 set grid
19 set xlabel "Time [{/Symbol m}s]"
20 set ylabel "Latency profile [messages]"
21 plot [0:1500] [1:$COUNT] \\
22 EOF
23     lt=1
24     for i in $ids; do
25         (( i != 0)) && echo ", \\"
26         echo -n "    " \"hist-$i.dat\" with lp lt $lt title \"Message id $i\"
27         lt=$((lt+1))
28     done
29     echo
30 }
31     
32 test_end