summaryrefslogtreecommitdiff
path: root/synth/profile.sh
blob: a1b8096c6bf0643c63b2ecca468d3df84406aebe (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:../../manyosc2.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