]> git.somenet.org - pub/jan/parprog.git/blob - openmp/merge/test_threads.sh
now with getopt, usage and not working randomfile reading.
[pub/jan/parprog.git] / openmp / merge / test_threads.sh
1 #!/bin/bash
2
3 STATFILE=merge.dat
4
5 rm $STATFILE
6 for i in 1 2 4 5 8 10 20 25 40 50 100 125 200
7 do
8         SORTMSG=`./sort -t $i`
9         echo "$i:" $SORTMSG
10         echo $SORTMSG | sed "s/took \([0-9]*\.[0-9]*\) seconds\./${i},\1/" >> $STATFILE
11 done
12
13 if [ $DISPLAY ]; then
14         gnuplot merge.plt && display merge.png
15 fi