From b746015013ae61f2ca7767fb69acfa83873cb44a Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 10 Jan 2014 19:12:43 +0100 Subject: [PATCH] Add a simple script for performing gateway benchmarks --- ugw/bench.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 ugw/bench.sh diff --git a/ugw/bench.sh b/ugw/bench.sh new file mode 100755 index 0000000..51bd48d --- /dev/null +++ b/ugw/bench.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +#./ppc/boot + +ssh glab "sudo latester -d can0 -d can1 -d can2 --oneattime -c 1000 -q -n ugw" +scp glab:ugw-hist.txt . + +gnuplot <<'EOF' +set title "Single GW rule for all messages, no modifications" +set grid xtics mxtics ytics mytics lw 1, lw 0.5 +set xlabel "GW latency [µs]" +set ylabel "Latency profile [frames]" +plot [:] [1:] \ + "ugw-hist.txt" using (1000*$1):2 with lp lt 1 title "UGW" +EOF -- 2.39.2