]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/filter-sff.sh
Convert graphs to logarithmic time and make fixed ranges
[can-benchmark.git] / gw-tests / filter-sff.sh
index a57d25f2f0d12e39f226e8f32cf0921644e603a3..2e544d77cb443c524bb47f53687da0b9c6bd895d 100755 (executable)
@@ -4,8 +4,11 @@
 
 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):c00007ff; done'
+}
+
+main() {
     for i in $ids; do
        latester -d can0 -d can1 -d can2 -c $COUNT -i $i $(traffic_and_length 2) -n id-$i
     done
@@ -14,11 +17,11 @@ main() {
 plot_cmds() {
     cat <<EOF
 set title "2048 GW jobs (one per id, mask C00007FF), no modifications"
-set logscale y
-set grid
-set xlabel "Time [{/Symbol m}s]"
+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.05:50] [1:$COUNT] \\
 EOF
     lt=1
     for i in $ids; do