From af8935f5be0f880fc79ed59e2c9c2d7674b1fcfb Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 23 Sep 2011 22:19:36 -0300 Subject: [PATCH] m1/perf/tabular: print total run time at the end --- m1/perf/tabulate | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/m1/perf/tabulate b/m1/perf/tabulate index bf43a77..f051670 100755 --- a/m1/perf/tabulate +++ b/m1/perf/tabulate @@ -149,6 +149,10 @@ fi echo "Original New sched (no opt) New sched (LCPF) Equiv Name" echo "Time Size Eff Regs Time Size Eff Regs Time Size Eff Regs" +tref=0 +tnew=0 +topt=0 + for n in `ls -1 data/ref/out`; do ref=`sum ref $n` new=`sum new $n` @@ -159,4 +163,11 @@ for n in `ls -1 data/ref/out`; do `time opt $n` `size opt $n` `eff opt $n` `regs opt $n` \ `eq $ref $new`/`eq $ref $opt`/`eq $new $opt` echo $n + tref="$tref `time ref $n` +" + tnew="$tnew `time new $n` +" + topt="$topt `time opt $n` +" done + +printf "Original time: %9.1f s\n" `dc -e "$tref p"` +printf "New (unopt) time: %6.1f s\n" `dc -e "$tnew p"` +printf "New (opt) time: %8.1f s\n" `dc -e "$topt p"`