]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Add a simple script for performing gateway benchmarks
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 10 Jan 2014 18:12:43 +0000 (19:12 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 10 Jan 2014 18:12:43 +0000 (19:12 +0100)
ugw/bench.sh [new file with mode: 0755]

diff --git a/ugw/bench.sh b/ugw/bench.sh
new file mode 100755 (executable)
index 0000000..51bd48d
--- /dev/null
@@ -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