]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - contrib/bc/Test/timetest
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / contrib / bc / Test / timetest
1 #!/bin/sh
2 #
3 # Time the functions.
4 #
5 SYSBC=/usr/bin/bc
6 if [ x$BC = x ] ; then
7   BC=../bc/bc
8 fi
9 for file in exp.b ln.b sine.b atan.b jn.b mul.b div.b raise.b sqrt.b
10 do
11 for prog in $BC $SYSBC $OTHERBC
12 do
13 echo Timing $file with $prog
14 time $prog -l $file
15 done
16 done