]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/filter-sff.sh
Merge branch 'master' of rtime.felk.cvut.cz:/can-benchmark
[can-benchmark.git] / gw-tests / filter-sff.sh
1 #!/bin/bash
2
3 . lib.sh
4
5 ids="0 $(seq 255 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, mask C00007FF)"
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         echo_plot "\"hist-$i.dat\" with lp lt $lt title \"Message id $i\""
26         lt=$((lt+1))
27     done
28     echo
29 }
30     
31 test_end