aboutsummaryrefslogtreecommitdiff
path: root/voctocore/scripts
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-05-20 10:57:01 +0200
committerMaZderMind <git@mazdermind.de>2015-05-20 10:57:01 +0200
commit7f281ac2be37ef04c331ac9d91a075f29ea57d7b (patch)
treeb63583b8effd592d24f994654b4cd5747573d230 /voctocore/scripts
parent464cd45530a03cce98594a3f5867fa7972bec787 (diff)
move perf & benchmark scripts into scripts-dir
Diffstat (limited to 'voctocore/scripts')
-rwxr-xr-xvoctocore/scripts/benchmark.sh13
-rwxr-xr-xvoctocore/scripts/perf.sh12
2 files changed, 25 insertions, 0 deletions
diff --git a/voctocore/scripts/benchmark.sh b/voctocore/scripts/benchmark.sh
new file mode 100755
index 0000000..7b3a72b
--- /dev/null
+++ b/voctocore/scripts/benchmark.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+../voctocore.py &
+PID=$!
+echo "PID=$PID"
+sleep 1
+./set-composite-side-by-side-equal.sh >/dev/null 2>/dev/null
+./av-source-eevblog.sh >/dev/null 2>/dev/null &
+./av-source-avsync.sh >/dev/null 2>/dev/null &
+pidstat -p $PID 1 &
+sleep 10
+kill $PID
+wait
diff --git a/voctocore/scripts/perf.sh b/voctocore/scripts/perf.sh
new file mode 100755
index 0000000..035ec05
--- /dev/null
+++ b/voctocore/scripts/perf.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+../voctocore.py &
+PID=$!
+echo "PID=$PID"
+sleep 1
+./set-composite-side-by-side-equal.sh >/dev/null 2>/dev/null
+./av-source-eevblog.sh >/dev/null 2>/dev/null &
+./av-source-avsync.sh >/dev/null 2>/dev/null &
+sudo perf top -g -p $PID
+kill $PID
+wait