public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* cc1 hog
@ 1997-10-01 10:23 Neal Becker
  1997-10-01 11:14 ` Joe Buck
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Neal Becker @ 1997-10-01 10:23 UTC (permalink / raw)
  To: egcs

970929 hppa1.1 hpux9.05

Running /src/egcs-970929/gcc/testsuite/gcc.c-torture/compile/compile.exp ...
  PID USERNAME PRI NICE   SIZE   RES STATE   TIME   WCPU    CPU COMMAND
 3538 neal      -5    0 83388K 42732K sleep   0:12 18.27% 16.34% cc1

No wonder make check takes *forever*.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: cc1 hog
@ 1997-10-01 15:35 Mike Stump
  1997-10-07 11:41 ` Jeffrey A Law
  0 siblings, 1 reply; 13+ messages in thread
From: Mike Stump @ 1997-10-01 15:35 UTC (permalink / raw)
  To: egcs

The right way to handle this is to introduce a new dejagnu reporting
type, and use it, then add utilities to monitor and track those
values.

Something like:

PERF: 400000000 gcc.c-torture/compile/900313-1.c,  -O1 compvmsize
PERF: 196.32 gcc.c-torture/compile/900313-1.c,  -O1 comptime
PERF: 47.1 gcc.c-torture/execute/900409-1.c compilation,  -O0 runtime

or more generally:

PERF: %f %s

Where %f is a number (floating double say) and %s is the name of the
test, lower numbers being better.  The unit is arbitrary and is
dependent upon the name of the test (and unchanging for a specific
test).  The units I used above are, maxstack+maxdata in bytes, time to
compile is milliseconds, runtime in milliseconds.

One could then imagine an analysis tool that compares two runs, and
tells you line by line, the % increase or decrease...  The harder part
is to figure out how to scale them (sibling importance ranking), but
let us theorize a hand tuned ranking (possibly nonlinear), given that
we could then come up with an objective, this is better/this is worse
type of answer to a basic question, like, does this change improve
things or hurt things.  In fact, if you scale across host-target combos
(ix86xi86 is more important than rompxspur), then you can collect tons
of perf information from everyone, crunch it and reduce this
blackmagic we call maintaining a compiler into more of a science.

We could then objectively answer questions like, should that bool in
cpp be a char or an int instead of having experts making educated
guesses.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~1997-10-09  9:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-01 10:23 cc1 hog Neal Becker
1997-10-01 11:14 ` Joe Buck
1997-10-01 12:12   ` Robert Lipe
1997-10-01 14:23     ` Joe Buck
1997-10-01 12:39 ` Jim Wilson
1997-10-01 12:40 ` Jim Wilson
1997-10-01 14:02   ` Joe Buck
1997-10-01 15:35 Mike Stump
1997-10-07 11:41 ` Jeffrey A Law
1997-10-07 23:14   ` Joel Sherrill
1997-10-08 21:19     ` Jeffrey A Law
1997-10-09  9:26       ` Joel Sherrill
1997-10-07 23:14   ` Torbjorn Granlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).