Re: profile-guided opt. w/ GCC - Mailing list pgsql-hackers

From Neil Conway
Subject Re: profile-guided opt. w/ GCC
Date
Msg-id 1096539127.25277.396.camel@localhost.localdomain
Whole thread Raw
In response to Re: profile-guided opt. w/ GCC  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Thu, 2004-09-30 at 19:49, Peter Eisentraut wrote:
> I doubt that the regression tests are anywhere near representative input 
> data.  They run a proportion of borderline and error cases that is much 
> higher than I would expect in normal use.

That's definitely true. At first glance, the regression tests don't seem
to be *too* badly skewed:

[src/test/regress/expected]% grep ERROR *.out | wc -l    
867
[src/test/regress/expected]% grep -i "^SELECT" *.out | wc -l
2924
[src/test/regress/expected]% grep -i "^INSERT" *.out | wc -l
2714
[src/test/regress/expected]% grep -i "^UPDATE" *.out | wc -l
122
[/src/test/regress/expected]% grep -i "^DELETE" *.out | wc -l
110
[src/test/regress/expected]% grep -i "^CREATE" *.out | wc -l
848
[src/test/regress/expected]% grep -i "^COPY" *.out | wc -l
46

I guess it depends on how closely the test data needs to match "normal"
input data for the gcc optimizer to be able to make valid decisions. My
intuition is that the regression tests are sufficiently close to normal
input that it won't be an issue, but I'm not sure.

-Neil




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: profile-guided opt. w/ GCC
Next
From: "Jeroen T. Vermeulen"
Date:
Subject: Re: profile-guided opt. w/ GCC