]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Convert graphs to logarithmic time and make fixed ranges
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 11 Dec 2010 16:27:02 +0000 (17:27 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 11 Dec 2010 16:27:02 +0000 (17:27 +0100)
With fixed ranges it is possible to compare related graphs.

gw-tests/filter-sff.sh
gw-tests/filter.sh
gw-tests/mod.sh
gw-tests/nop-highprio-time.sh
gw-tests/nop-highprio.sh
gw-tests/nop-time.sh
gw-tests/nop.sh
gw-tests/pc.sh
gw-tests/user.sh
gw-tests/vcan.sh
gw-tests/vcans.sh

index f929bf030bed0675497831f9d91c03e30efef093..2e544d77cb443c524bb47f53687da0b9c6bd895d 100755 (executable)
@@ -17,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 logscale xy
+set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-plot [0:2] [1:$COUNT] \\
+plot [0.05:50] [1:$COUNT] \\
 EOF
     lt=1
     for i in $ids; do
index 51a8114decfdbae514dda9dc3c4fd3a675462a4f..38652f412b2c7bd309c3085d3f911a79c3cf6f4b 100755 (executable)
@@ -17,11 +17,11 @@ main() {
 plot_cmds() {
     cat <<EOF
 set title "2048 GW jobs (one per id, mask 0x7FF), no modifications"
-set logscale y
-set grid
+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:] [1:$COUNT] \\
+plot [0.1:100] [1:$COUNT] \\
 EOF
     lt=1
     for i in $ids; do
index 7264d40964e92b94a3993372f8daada81b5a38b1..0a338d691c0ff7455f2c2ace438df6a057bd47a2 100755 (executable)
@@ -40,11 +40,11 @@ main() {
 plot_cmds() {
     cat <<EOF
 set title "Single GW job for all messages with modifications, 8 byte messages"
-set logscale y
-set grid
+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:1] [1:$COUNT] \
+plot [0.05:100] [1:$COUNT] \
           "nop-hist.txt" with lp lt 1 title "No modifications", \
           "mod-hist.txt" with lp lt 2 title "Two modifications", \
           "mod2-hist.txt" with lp lt 3 title "Four modifications", \
index f03a2673091db2437125aebca1eeb5883ad695d8..a5a00057c1a52ee889db0ae6649f6d4f1240e95c 100755 (executable)
@@ -9,11 +9,12 @@ main() {
 plot_cmds() {
     cat <<'EOF'
 set title "Single GW job for all messages, no modifications, high (soft)irq task priority"
-set grid
+set logscale y
+set grid xtics ytics mytics lw 1, lw 0.5
 set key left
 set xlabel "Time [s]"
 set ylabel "Latency [ms]"
-plot [:] [:0.5] \
+plot [:] [0.06:4] \
           "len2-msgs.txt" using 2:(1000*$14) with points title "2 byte messages", \
           "len4-msgs.txt" using 2:(1000*$14) with points title "4 byte messages", \
           "len6-msgs.txt" using 2:(1000*$14) with points title "6 byte messages", \
index d5661a17264ca0b41479a2398699a787614e8b86..3734be695e23edb1fb1c3662248d12545f6c7e31 100755 (executable)
@@ -23,11 +23,11 @@ main() {
 plot_cmds() {
     cat <<EOF
 set title "Single GW job for all messages, no modifications, high (soft)irq task priority"
-set logscale y
-set grid
+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:1] [1:$COUNT] \
+plot [0.05:100] [1:$COUNT] \
           "len2-hist.txt" with lp lt 1 title "2 byte messages", \
           "len4-hist.txt" with lp lt 2 title "4 byte messages", \
           "len6-hist.txt" with lp lt 3 title "6 byte messages", \
index bb179adcf176c8348d0905af51f84980540fb558..479f600b9b8bc621170a63e95e405f574d030d46 100755 (executable)
@@ -3,16 +3,18 @@
 . lib.sh
 
 main() {
-       ln -s ../nop-highprio/*.txt .
+       ln -s ../nop/*.txt .
 }
 
 plot_cmds() {
     cat <<'EOF'
 set title "Single GW job for all messages, no modifications"
-set grid
+set logscale y
+set grid xtics ytics mytics lw 1, lw 0.5
+set key left
 set xlabel "Time [s]"
 set ylabel "Latency [ms]"
-plot [:] [:0.5] \
+plot [:] [0.06:4] \
           "len2-msgs.txt" using 2:(1000*$14) with points title "2 byte messages", \
           "len4-msgs.txt" using 2:(1000*$14) with points title "4 byte messages", \
           "len6-msgs.txt" using 2:(1000*$14) with points title "6 byte messages", \
index b6e8109d130897997e6da97645ac163201fdde3b..d3f6ff3747f76f7612468a58c808030aa1b33777 100755 (executable)
@@ -13,11 +13,11 @@ main() {
 plot_cmds() {
     cat <<EOF
 set title "Single GW job for all messages, no modifications"
-set logscale y
-set grid
+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:1] [1:$COUNT] \
+plot [0.05:100] [1:$COUNT] \
           "len2-hist.txt" with lp lt 1 title "2 byte messages", \
           "len4-hist.txt" with lp lt 2 title "4 byte messages", \
           "len6-hist.txt" with lp lt 3 title "6 byte messages", \
index 477b13c26807d4923e402ba9bd040ebbcf374334..afec393a8597a310c020a2da480dfbec976a0ee7 100755 (executable)
@@ -10,13 +10,16 @@ main() {
 }
 
 plot_cmds() {
+    max=0.5
+    if [ $traffic = "flood" ]; then max=35; fi
+
     cat <<EOF
 set title "No GW, two interfaces in PC"
 set logscale y
 set grid
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-plot [0:] [1:$COUNT] \
+plot [0.01:$max] [1:$COUNT] \
           "len2-hist.txt" with lp lt 1 title "2 byte messages", \
           "len4-hist.txt" with lp lt 2 title "4 byte messages", \
           "len6-hist.txt" with lp lt 3 title "6 byte messages", \
index 18e673088317a08f5e2d2aae280f611903b75e26..b6f1be280f5cf3efb198afb2048ce844e66bac31 100755 (executable)
@@ -15,11 +15,11 @@ main() {
 plot_cmds() {
     cat <<EOF
 set title "Kernel vs. userspace GW, no modifications"
-set logscale y
-set grid
+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:] [1:$COUNT] \
+plot [0.05:1000] [1:$COUNT] \
           "kern2-hist.txt" with lp lt 1 title "Kernel GW, 2 byte messages", \
           "kern8-hist.txt" with lp lt 2 title "Kernel GW, 8 byte messages", \
           "user2-hist.txt" with lp lt 1 title "Userspace GW, 2 byte messages", \
index d44504ae6137a63c2cd99dd3d33f37882b43be92..d9a8fecbc765c2798991a9fc69ab7c428d9894d6 100755 (executable)
@@ -22,11 +22,11 @@ main() {
 plot_cmds() {
     cat <<EOF
 set title "Chained GW jobs on a signle VCAN interface"
-set logscale y
-set grid
+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:10] [1:$COUNT] \\
+plot [0.1:1000] [1:$COUNT] \\
 EOF
     lt=2
     for i in $numjobs; do
index e49bfdac4bc0b62362cc4b38d5f128aa332800a2..be2ec2d7916b3e5b37c1b70c82c40aa92f830608 100755 (executable)
@@ -22,11 +22,11 @@ main() {
 plot_cmds() {
     cat <<EOF
 set title "Chained GW jobs on multiple VCAN interfaces"
-set logscale y
-set grid
+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:1] [1:$COUNT] \\
+plot [0.1:1000] [1:$COUNT] \\
 EOF
     lt=1
     for i in $numjobs; do