]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/mod.sh
Show statistics in result pages
[can-benchmark.git] / gw-tests / mod.sh
1 #!/bin/bash
2
3 . lib.sh
4
5
6 main() {
7     LATESTER_OPTS="-d can0 -d can1 -d can2 $(traffic_and_length 8) -c $COUNT"
8
9     sshgw cangw -A -s can0 -d can1
10     latester $LATESTER_OPTS -n nop
11
12     cleanupgw
13     sshgw cangw -A -s can0 -d can1 -m OR:D:0.0.0000123400000000 \
14                                    -m SET:IL:123.8.0000000000000000
15     latester $LATESTER_OPTS -n mod
16
17     cleanupgw
18     sshgw cangw -A -s can0 -d can1 -m AND:ID:0.0.ffff000000000000 \
19                                    -m OR:D:0.0.0000123400000000 \
20                                    -m XOR:D:0.0.0000000012345678 \
21                                    -m SET:IL:123.8.0000000000000000
22     latester $LATESTER_OPTS -n mod2
23
24     cleanupgw
25     sshgw cangw -A -s can0 -d can1 -m AND:ID:0.0.ffff000000000000 \
26                                    -m OR:D:0.0.0000123400000000 \
27                                    -m XOR:D:0.0.0000000012345678 \
28                                    -m SET:IL:123.8.0000000000000000 \
29                                    -x 0:6:7:0
30     latester $LATESTER_OPTS -n modcsxor
31     cleanupgw
32     sshgw cangw -A -s can0 -d can1 -m AND:ID:0.0.ffff000000000000 \
33                                    -m OR:D:0.0.0000123400000000 \
34                                    -m XOR:D:0.0.0000000012345678 \
35                                    -m SET:IL:123.8.0000000000000000 \
36                                    -p 3 -c 0:6:7:0:0:00D013C326F635E54C9C5F8F6ABA79A998488B5BBE6EAD7DD404C717F222E13183539040A575B666CF1FDC0CE939FA2A1BCB08D83DED2EFE5787449471A162B2B565A67693438050F929EA3ADF0FCC1C2DFD3EEE0BDB18C861B172A24797548436E625F510C003D37AAA69B95C8C4F9FAE7EBD6D88589B4BE232F121C414D707D909CA1AFF2FEC3C95458656B363A0704191528267B774A40DDD1ECE2BFB38E85A8A49997CAC6FBF16C605D530E023F3C212D101E434F7278E5E9D4DA878BB6B6CBC7FAF4A9A598920F033E306D615C5F424E737D202C111B868AB7B9E4E8D5DEF3FFC2CC919DA0AA373B0608555964677A764B4518142923BEB28F81DCD0EDE
37     latester $LATESTER_OPTS -n modcscrc8
38 }
39
40 plot_cmds() {
41     cat <<EOF
42 set title "Single GW job for all messages with modifications, 8 byte messages"
43 set logscale xy
44 set grid xtics mxtics ytics mytics lw 1, lw 0.5
45 set xlabel "Time [ms]"
46 set ylabel "Latency profile [messages]"
47 plot [0.05:100] [1:$COUNT] \
48           "nop-hist.txt" with lp lt 1 title "No modifications", \
49           "mod-hist.txt" with lp lt 2 title "Two modifications", \
50           "mod2-hist.txt" with lp lt 3 title "Four modifications", \
51           "modcsxor-hist.txt" with lp lt 4 title "Four modifications and XOR checksum",\
52           "modcscrc8-hist.txt" with lp lt 5 title "Four modifications and CRC8 checksum"
53 EOF
54 }
55     
56 test_end
57