|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 884 (0x374)
Types: TextFile
Names: »doduc.run«
└─⟦db229ac7e⟧ Bits:30007240 EUUGD20: SSBA 1.2 / AFW Benchmarks
└─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21E/doduc/doduc.run«
#! /bin/sh
# SSBA 1.21E
#
# Script : doduc.run
#
b=doduc
TIME=../config/chrono
log=$b.log
res=$b.res
echo "kill -9 $$" >$b.kill
chmod u+x $b.kill
cat $b.kill >> ../ssba/ssba.kill
d=`date`
echo "DODUC: BEGIN execution at $d" >$log
cat $b.doc >$res
f=doducd
if [ -f $f ] ; then
$TIME $f <$b.dat 1>$b.tmp 2>>$b.tim
cat $b.tim $b.tmp >>$log
rm $b.tim $b.tmp 2>/dev/null
fi
awk ' BEGIN { FS = "\t" } /^doducd :/ { print $3 }' <$log >$b.cpu
sed 16q $log | tail -1 | awk '{ print $3 >"doduc.pre"; print $7 >"doduc.iter" }'
cpu=`cat $b.cpu`
pre=`cat $b.pre`
iter=`cat $b.iter`
rm $b.cpu $b.pre $b.iter 2>/dev/null
if [ $iter -ge "5453" -a $iter -le "5507" ] ; then
stat="correct"
else
stat="incorrect"
fi
R=`echo "(169.58 * 286.30) / $cpu" | bc`
echo "$f : precision=$pre itera=$iter ($stat) time=$cpu R=$R" >>$res
d=`date`
echo "DODUC: END execution at $d" >>$log