]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/filter.sh
Convert graphs to logarithmic time and make fixed ranges
[can-benchmark.git] / gw-tests / filter.sh
index 183ab1b8c7e6f451f4c5cb1979337b7a6c3a1927..38652f412b2c7bd309c3085d3f911a79c3cf6f4b 100755 (executable)
@@ -4,25 +4,28 @@
 
 ids="0 $(seq 255 256 2047)"
 
-main() {
+prepare() {
     sshgw 'for i in `seq 0 2047`; do cangw -A -s can0 -d can1 -f $(printf %x $i):7ff; done'
+}
+
+main() {
     for i in $ids; do
-       latester -d can0 -d can1 -d can2 -o -c $COUNT -i $i -h hist-$i.dat -f time-$i.dat
+       latester -d can0 -d can1 -d can2 -c $COUNT -i $i $(traffic_and_length 2) -n id-$i
     done
 }
 
 plot_cmds() {
     cat <<EOF
-set title "Single GW, no modifications, 2048 filters (one per id, mask 0x7FF)"
-set logscale y
-set grid
-set xlabel "Time [{/Symbol m}s]"
+set title "2048 GW jobs (one per id, mask 0x7FF), no modifications"
+set logscale xy
+set grid xtics mxtics ytics mytics lw 1, lw 0.5
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-plot [0:1500] [1:$COUNT] \\
+plot [0.1:100] [1:$COUNT] \\
 EOF
     lt=1
     for i in $ids; do
-       echo_plot "\"hist-$i.dat\" with lp lt $lt title \"Message id $i\""
+       echo_plot "\"id-$i-hist.txt\" with lp lt $lt title \"Message id $i\""
         lt=$((lt+1))
     done
 }