summaryrefslogtreecommitdiff
path: root/Test/timetest
blob: 36d8d8e03750c1cfce66d5452c3b2f1bd140c408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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 fact.b
do
for prog in $SYSBC $BC $OTHERBC
do
echo Timing $file with $prog
time $prog -l $file
done
done