]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt-overload.sh
Added overload test which must be yet tuned
[can-benchmark.git] / tests / rtt-overload.sh
diff --git a/tests/rtt-overload.sh b/tests/rtt-overload.sh
new file mode 100755 (executable)
index 0000000..7aad504
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+. _lib.sh
+
+C=100
+
+t() {
+    PID_S=`vca_canping -s $C -b -r -d $CAN1`
+    vca_canping -m $C -r -v -g $DRIVER -t 1 -d $CAN0 -w 500 -c 10
+    kill $PID_S
+}
+
+
+
+PLOT_CMD="
+set title 'RTT of highest prio message when opened $C times (`uname -r`)'
+set logscale y
+set grid
+set xlabel 'Time [{/Symbol m}s]'
+set ylabel 'Latency profile [messages]'
+plot [0:] 'socketcan-1000.dat' with lp title 'Socketcan',\
+          'lincan-1000.dat' with lp title 'Lincan'
+"
+