]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Show graphs in ms instead of us
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 10 Dec 2010 17:01:37 +0000 (18:01 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 10 Dec 2010 17:01:37 +0000 (18:01 +0100)
It is more readable in case of long delays.

12 files changed:
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
latester/histogram.h

index a597954616e4970555a87d3882d04d940ca32605..f1c78e316fdcf05ad4ae6c8f81e31d48291e3a3d 100755 (executable)
@@ -19,7 +19,7 @@ plot_cmds() {
 set title "2048 GW jobs (one per id, mask C00007FF), no modifications"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [0:1500] [1:$COUNT] \\
 EOF
index 4a24c716dd95e05353ba7b58679e7528fe71319c..51a8114decfdbae514dda9dc3c4fd3a675462a4f 100755 (executable)
@@ -19,7 +19,7 @@ plot_cmds() {
 set title "2048 GW jobs (one per id, mask 0x7FF), no modifications"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [0:] [1:$COUNT] \\
 EOF
index a34241571509fe44955d159911e1656007e1533d..6a870e6b9fa3b26aeb90eb1b295cb32121a021e5 100755 (executable)
@@ -42,7 +42,7 @@ plot_cmds() {
 set title "Single GW job for all messages with modifications, 8 byte messages"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [0:600] [1:$COUNT] \
           "nop-hist.txt" with lp lt 1 title "No modifications", \
index 0d13e9a2437602c651978bf69caaa5fd11f1390c..953835ce5f09b48355226a045217ef2f7494cde2 100755 (executable)
@@ -11,12 +11,12 @@ plot_cmds() {
 set title "Single GW job for all messages, no modifications, high (soft)irq task priority"
 set grid
 set xlabel "Time [s]"
-set ylabel "Latency [{/Symbol m}s]"
+set ylabel "Latency [ms]"
 plot [:] [:500] \
-          "len2-msgs.txt" using 2:(1000000*$14) with points title "2 byte messages", \
-          "len4-msgs.txt" using 2:(1000000*$14) with points title "4 byte messages", \
-          "len6-msgs.txt" using 2:(1000000*$14) with points title "6 byte messages", \
-          "len8-msgs.txt" using 2:(1000000*$14) with points title "8 byte messages"
+          "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", \
+          "len8-msgs.txt" using 2:(1000*$14) with points title "8 byte messages"
 EOF
 }
     
index 0b0931280eddaba80ada4c7c2195a2b7c72bdc47..8363fd5976913b26b276fe75918cc864748cb8a8 100755 (executable)
@@ -19,7 +19,7 @@ plot_cmds() {
 set title "Single GW job for all messages, no modifications, high (soft)irq task priority"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [0:600] [1:$COUNT] \
           "len2-hist.txt" with lp lt 1 title "2 byte messages", \
index 007542dd9350458a6e7b4541016f711c78cce1f5..4d3152d9a66b69f0edc4502a6b327238cf04965c 100755 (executable)
@@ -11,12 +11,12 @@ plot_cmds() {
 set title "Single GW job for all messages, no modifications"
 set grid
 set xlabel "Time [s]"
-set ylabel "Latency [{/Symbol m}s]"
+set ylabel "Latency [ms]"
 plot [:] [:500] \
-          "len2-msgs.txt" using 2:(1000000*$14) with points title "2 byte messages", \
-          "len4-msgs.txt" using 2:(1000000*$14) with points title "4 byte messages", \
-          "len6-msgs.txt" using 2:(1000000*$14) with points title "6 byte messages", \
-          "len8-msgs.txt" using 2:(1000000*$14) with points title "8 byte messages"
+          "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", \
+          "len8-msgs.txt" using 2:(1000*$14) with points title "8 byte messages"
 EOF
 }
     
index 3747a85034ba89870e683d95d4d1299367876285..341124f790f2d131b82fcb1e680c65596d5b151d 100755 (executable)
@@ -15,7 +15,7 @@ plot_cmds() {
 set title "Single GW job for all messages, no modifications"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [0:600] [1:$COUNT] \
           "len2-hist.txt" with lp lt 1 title "2 byte messages", \
index fa511d8ddb6287d25498d2dacafde0e0df7c22ba..477b13c26807d4923e402ba9bd040ebbcf374334 100755 (executable)
@@ -14,7 +14,7 @@ plot_cmds() {
 set title "No GW, two interfaces in PC"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [0:] [1:$COUNT] \
           "len2-hist.txt" with lp lt 1 title "2 byte messages", \
index 6fedbda75301279cbaaa696b04dce5369cd38d8b..18e673088317a08f5e2d2aae280f611903b75e26 100755 (executable)
@@ -17,7 +17,7 @@ plot_cmds() {
 set title "Kernel vs. userspace GW, no modifications"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [0:] [1:$COUNT] \
           "kern2-hist.txt" with lp lt 1 title "Kernel GW, 2 byte messages", \
index b760d5ff28ef69fb8cf7405bc023165d583e7840..7002bfc8f381e272e8acbec50087d5f40dfa96f9 100755 (executable)
@@ -24,7 +24,7 @@ plot_cmds() {
 set title "Chained GW jobs on a signle VCAN interface"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [0:10000] [1:$COUNT] \\
 EOF
index 69e867dd36ecfdd344fee3bdd94956a7addde120..d73165fc4d9f5374b9d9328ea300f9c89fa0306e 100755 (executable)
@@ -24,7 +24,7 @@ plot_cmds() {
 set title "Chained GW jobs on multiple VCAN interfaces"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [0:1000] [1:$COUNT] \\
 EOF
index ad7591ccccf7f1220f80d3488307ff6560da0cd5..4a9aade0bc67c793cc89d22491eca22d8a90844b 100644 (file)
@@ -40,10 +40,7 @@ void histogram_fprint(struct histogram *h, FILE *f)
        cum = sum;
        for (i = 0; i < h->allocated; i++) {
                if (h->data[i] != 0) {
-                       if (!getenv("CANPING_MS"))
-                               fprintf(f, "%d %lld\n", i*h->resolution, cum);
-                       else
-                               fprintf(f, "%g %lld\n", 1e-3*(i*h->resolution), cum);
+                       fprintf(f, "%g %lld\n", 1e-3*(i*h->resolution), cum);
                }
                cum -= h->data[i];
        }