14 lines
413 B
Bash
Executable File
14 lines
413 B
Bash
Executable File
#!/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
|