File: timetest

package info (click to toggle)
bc 1.07.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,512 kB
  • sloc: ansic: 7,601; sh: 1,468; yacc: 1,110; lex: 342; makefile: 90
file content (16 lines) | stat: -rwxr-xr-x 267 bytes parent folder | download | duplicates (6)
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