dComArk15/Aflevering5-x86-64/bin/timetest-rec.sh

14 lines
413 B
Bash
Raw Normal View History

2016-01-03 12:29:05 +00:00
#!/bin/bash
echo "Recursive"
echo " N: ${1}"
echo "---------"
/usr/bin/time --output=fib.log -f %e ./fib $1 &> /dev/null;
echo "fib : `cat fib.log`"
rm fib.log
/usr/bin/time --output=fib-as.log -f %e ./fib-as $1 &> /dev/null;
echo "fib-as : `cat fib-as.log`"
rm fib-as.log
/usr/bin/time --output=fib-java.log -f %e ./fib-java $1 &> /dev/null;
echo "fib-java : `cat fib-java.log`"
rm fib-java.log