summaryrefslogtreecommitdiff
path: root/synth/profile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'synth/profile.sh')
-rwxr-xr-xsynth/profile.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/synth/profile.sh b/synth/profile.sh
new file mode 100755
index 0000000..921a5d4
--- /dev/null
+++ b/synth/profile.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+if [ x$1 = x ]; then
+ cnt=5
+else
+ cnt=$1
+fi
+
+for ((i=1;i<=$cnt;i++)); do
+ /usr/bin/time -p ./synth -p 0:analog.prog -i 60 -x 1000:1 -a -m 2>&1 | grep 'user ' | sed 's/user //';
+ #echo "$i / $cnt done" 1>&2
+done | python avg_stddev.py