]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/nop-time.sh
Remove debug prints
[can-benchmark.git] / gw-tests / nop-time.sh
1 #!/bin/bash
2
3 . lib.sh
4
5 main() {
6         ln -s ../nop/*.txt .
7 }
8
9 ADDITIONAL_PLOTS=detail
10
11 plot_cmds() {
12     if [[ "$1" = detail ]]; then
13         range=0.06:0.3
14     else
15         range=0.06:4
16         echo "set logscale y"
17     fi
18     min=$(head -n 1 len2-msgs.txt | awk '{ print $2 }')
19     cat <<EOF
20 set title "Single GW job for all messages, no modifications"
21 set grid xtics ytics mytics lw 1, lw 0.5
22 set key left
23 set xlabel "Time [s]"
24 set ylabel "Latency [ms]"
25 plot [:] [$range] \
26           "len2-msgs.txt" using (\$2-$min):(1000*\$14) with points title "2 byte messages", \
27           "len4-msgs.txt" using (\$2-$min):(1000*\$14) with points title "4 byte messages", \
28           "len6-msgs.txt" using (\$2-$min):(1000*\$14) with points title "6 byte messages", \
29           "len8-msgs.txt" using (\$2-$min):(1000*\$14) with points title "8 byte messages"
30 EOF
31 }
32     
33 test_end
34