1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/contrib/bc/Test/timetest
2001-02-26 07:13:00 +00:00

17 lines
260 B
Bash
Executable File

#!/bin/sh
#
# Time the functions.
#
SYSBC=/usr/bin/bc
if [ x$BC = x ] ; then
BC=../bc/bc
fi
for file in exp.b ln.b sine.b atan.b jn.b mul.b div.b raise.b sqrt.b
do
for prog in $BC $SYSBC $OTHERBC
do
echo Timing $file with $prog
time $prog -l $file
done
done