Substract tx time also in time graphs
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 23 Sep 2011 23:00:20 +0000 (01:00 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 24 Sep 2011 12:46:27 +0000 (14:46 +0200)
gw-tests/filter-time.sh
gw-tests/nop-highprio-time.sh
gw-tests/nop-time.sh
gw-tests/user-time.sh

index 68dff87..f338ab8 100755 (executable)
@@ -29,7 +29,7 @@ plot [:] [$range] \\
 EOF
     lt=1
     for i in $ids; do
-       echo_plot "\"id-$i-msgs.txt\" using (\$2-$min):(1000*\$14) with points title \"Message id $i\""
+       echo_plot "\"id-$i-msgs.txt\" using (\$2-$min):(1000*\$14-0.001*\$16) with points title \"Message id $i\""
         lt=$((lt+1))
     done
 }
index ca99876..603304b 100755 (executable)
@@ -16,10 +16,10 @@ set key left
 set xlabel "Time [s]"
 set ylabel "Latency [ms]"
 plot [:] [0.06:4] \
-          "len2-msgs.txt" using (\$2-$min):(1000*\$14) with points title "2 byte messages", \
-          "len4-msgs.txt" using (\$2-$min):(1000*\$14) with points title "4 byte messages", \
-          "len6-msgs.txt" using (\$2-$min):(1000*\$14) with points title "6 byte messages", \
-          "len8-msgs.txt" using (\$2-$min):(1000*\$14) with points title "8 byte messages"
+          "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \
+          "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \
+          "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \
+          "len8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "8 byte messages"
 EOF
 }
     
index eb6aa3e..9d6b262 100755 (executable)
@@ -23,10 +23,10 @@ set key left
 set xlabel "Time [s]"
 set ylabel "Latency [ms]"
 plot [:] [$range] \
-          "len2-msgs.txt" using (\$2-$min):(1000*\$14) with points title "2 byte messages", \
-          "len4-msgs.txt" using (\$2-$min):(1000*\$14) with points title "4 byte messages", \
-          "len6-msgs.txt" using (\$2-$min):(1000*\$14) with points title "6 byte messages", \
-          "len8-msgs.txt" using (\$2-$min):(1000*\$14) with points title "8 byte messages"
+          "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \
+          "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \
+          "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \
+          "len8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "8 byte messages"
 EOF
 }
     
index bf33108..cb73de2 100755 (executable)
@@ -28,10 +28,10 @@ set grid xtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [s]"
 set ylabel "Latency [ms]"
 plot [:] [$range] \
-          "user2-msgs.txt" using (\$2-$min):(1000*\$14) with points title "Userspace GW, 2 byte messages", \
-          "user8-msgs.txt" using (\$2-$min):(1000*\$14) with points title "Userspace GW, 8 byte messages", \
-          "kern2-msgs.txt" using (\$2-$min):(1000*\$14) with points title "Kernel GW, 2 byte messages", \
-          "kern8-msgs.txt" using (\$2-$min):(1000*\$14) with points title "Kernel GW, 8 byte messages"
+          "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \
+          "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \
+          "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \
+          "kern8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 8 byte messages"
 EOF
 }