"Fossies" - the Fresh Open Source Software Archive

Member "bc-1.06.95/Test/timetest" (27 May 2005, 267 Bytes) of package /linux/misc/old/bc-1.06.95.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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 fact.b
   10 do
   11 for prog in $SYSBC $BC $OTHERBC
   12 do
   13 echo Timing $file with $prog
   14 time $prog -l $file
   15 done
   16 done