summaryrefslogtreecommitdiff
path: root/synth/profile.sh
blob: 921a5d40b5b131bb8dd5b0c1f06243eadbec34ff (plain)
1
2
3
4
5
6
7
8
9
10
11
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