mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-04-21 12:27:27 +03:00
m1/perf/: calculate effective register allocation and how it in comparison table
This commit is contained in:
@@ -24,7 +24,8 @@ eff()
|
||||
|
||||
regs()
|
||||
{
|
||||
sed '/^regs: 0\//s///p;d' <data/$1/out/$2 | tail -n 1
|
||||
./eval.pl -r data/$1/out/$2 | sed '1d;s|/.*||'
|
||||
# sed '/^regs: 0\//s///p;d' <data/$1/out/$2 | tail -n 1
|
||||
}
|
||||
|
||||
|
||||
@@ -44,15 +45,15 @@ eq()
|
||||
}
|
||||
|
||||
|
||||
echo "Original New sched (no opt) New sched (LCPF) Equiv Name"
|
||||
echo "Time Size Eff Time Size Eff Regs Time Size Eff Regs"
|
||||
echo "Original New sched (no opt) New sched (LCPF) Equiv Name"
|
||||
echo "Time Size Eff Regs Time Size Eff Regs Time Size Eff Regs"
|
||||
|
||||
for n in `ls -1 data/ref/out`; do
|
||||
ref=`sum ref $n`
|
||||
new=`sum new $n`
|
||||
opt=`sum opt $n`
|
||||
printf "%5.1f %4d%3d%% %5.1f %4d%3d%% %4d %5.1f %4d%3d%% %4d %s " \
|
||||
`time ref $n` `size ref $n` `eff ref $n` \
|
||||
printf "%5.1f %4d%3d%% %4d %5.1f %4d%3d%% %4d %5.1f %4d%3d%% %4d %s " \
|
||||
`time ref $n` `size ref $n` `eff ref $n` `regs ref $n` \
|
||||
`time new $n` `size new $n` `eff new $n` `regs new $n` \
|
||||
`time opt $n` `size opt $n` `eff opt $n` `regs opt $n` \
|
||||
`eq $ref $new`/`eq $ref $opt`/`eq $new $opt`
|
||||
|
||||
Reference in New Issue
Block a user