freebsd-dev/contrib/bc/Test/timetest

17 lines
260 B
Plaintext
Raw Normal View History

1998-04-29 21:53:01 +00:00
#!/bin/sh
#
# Time the functions.
#
SYSBC=/usr/bin/bc
2001-02-26 07:13:00 +00:00
if [ x$BC = x ] ; then
BC=../bc/bc
fi
1998-04-29 21:53:01 +00:00
for file in exp.b ln.b sine.b atan.b jn.b mul.b div.b raise.b sqrt.b
do
2001-02-26 07:13:00 +00:00
for prog in $BC $SYSBC $OTHERBC
1998-04-29 21:53:01 +00:00
do
echo Timing $file with $prog
time $prog -l $file
done
done