From aafcce616c45ce46821c2ed71f1c01ebebedd2f8 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 24 Sep 2011 01:00:20 +0200 Subject: [PATCH] Substract tx time also in time graphs --- gw-tests/filter-time.sh | 2 +- gw-tests/nop-highprio-time.sh | 8 ++++---- gw-tests/nop-time.sh | 8 ++++---- gw-tests/user-time.sh | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/gw-tests/filter-time.sh b/gw-tests/filter-time.sh index 68dff87..f338ab8 100755 --- a/gw-tests/filter-time.sh +++ b/gw-tests/filter-time.sh @@ -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 } diff --git a/gw-tests/nop-highprio-time.sh b/gw-tests/nop-highprio-time.sh index ca99876..603304b 100755 --- a/gw-tests/nop-highprio-time.sh +++ b/gw-tests/nop-highprio-time.sh @@ -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 } diff --git a/gw-tests/nop-time.sh b/gw-tests/nop-time.sh index eb6aa3e..9d6b262 100755 --- a/gw-tests/nop-time.sh +++ b/gw-tests/nop-time.sh @@ -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 } diff --git a/gw-tests/user-time.sh b/gw-tests/user-time.sh index bf33108..cb73de2 100755 --- a/gw-tests/user-time.sh +++ b/gw-tests/user-time.sh @@ -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 } -- 2.39.2