| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | #!/bin/bash## StarPU# Copyright (C) INRIA 2008-2010 (see AUTHORS file)## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or (at# your option) any later version.## This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.## See the GNU Lesser General Public License in COPYING.LGPL for more details.## We compute the duration of the experiment for multiple powers of 2i=1examplebindir=../../examples/incrementer/rm -f .perftablemax=20for logi in `seq 0 $max`do	$examplebindir/incrementer $i 2> .tmpperf	grep "ms" .tmpperf	grep "ms" .tmpperf | sed -e "s/^\(.*\) elems took \(.*\) ms$/\1	\2/" >> .perftable 	i=$((2 * $i))donegnuplot > /dev/null << EOFset term postscript eps enhanced colorset output "incrementer.eps"set xlabel "Number of iterations"set ylabel "Execution time (ms)"set logscale xset logscale yplot ".perftable" using 1:2 with linespoint title "Time"EOF
 |