diff options
Diffstat (limited to 'contrib/bc/Test/timetest')
-rwxr-xr-x | contrib/bc/Test/timetest | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/bc/Test/timetest b/contrib/bc/Test/timetest new file mode 100755 index 0000000..90da6ab --- /dev/null +++ b/contrib/bc/Test/timetest @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Time the functions. +# +BC=../bc +SYSBC=/usr/bin/bc +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 +do +echo Timing $file with $prog +time $prog -l $file +done +done |