mirror of
https://github.com/opnsense/src.git
synced 2026-02-14 00:04:14 -05:00
16 lines
260 B
Bash
Executable file
16 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
|