From 769fb3cca32ad9bddf39e065c687ad102b2c1a36 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 20 Jan 2014 16:57:03 +0100 Subject: [PATCH 1/1] Final benchmark --- ugw/data/bench-all.sh | 2 +- ugw/data/plot-thr.gp | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ugw/data/bench-all.sh b/ugw/data/bench-all.sh index deb38c4..dd3b254 100755 --- a/ugw/data/bench-all.sh +++ b/ugw/data/bench-all.sh @@ -60,7 +60,7 @@ for method in $methods; do arg=${args[$i]} dir=${dirs[$i]} set -x - ssh glab "sudo ip l set eth0 down; sudo ~/bin/latester -d can0 -d can1 -d can2 -c 5000 -q -n $method $arg; r=\$?; sudo ip l set eth0 up; exit \$r" + ssh glab "sudo ip l set eth0 down; sudo ~/bin/latester -d can0 -d can1 -d can2 -c 3200 -q -n $method $arg; r=\$?; sudo ip l set eth0 up; exit \$r" mkdir -p $dir scp glab:"$method-*.txt" $dir (cd $dir && ln -sf ../Makefile ../plot.gp ../preprocess.m .) diff --git a/ugw/data/plot-thr.gp b/ugw/data/plot-thr.gp index 8eb0840..18d8204 100755 --- a/ugw/data/plot-thr.gp +++ b/ugw/data/plot-thr.gp @@ -4,15 +4,16 @@ reset set xlabel "Frame period [µs]" -set ylabel "Latency [µs] + packet loss" +set ylabel "GW latency [µs] + packet loss" set style data yerrorlines # set yrange [0:10000] -set yrange [10:] +set yrange [20:] set ytics (1e1,2e1,5e1,1e2,2e2,5e2,1e3,2e3,5e3,1e4,2e4,5e4,1e5,2e5,5e5) set logscale y -set key reverse Left invert outside +#set key reverse Left invert +set key outside center top Left reverse maxrows 4 set grid -loss_scale=3 +loss_scale=10 plot \ 'kernel.dat' using 1:2:($3*loss_scale) title 'kernel', \ 'mmsg-mmsg.dat' using 1:2:($3*loss_scale) title 'mmsg-mmsg', \ -- 2.39.2