[XviD-devel] Automatic benchmark / compile

Christoph Lampert xvid-devel@xvid.org
Thu, 16 Jan 2003 14:54:01 +0100 (CET)


On Thu, 16 Jan 2003, Edouard Gomez wrote:

> En réponse à Christoph Lampert <chl@math.uni-bonn.de>:
> > Since it's very well 20% or more of a difference between "defaults"
> > and "optimal", I wanted to include a small shell-script into XviD
> > build/generic that could do some kind of automatic benchmarking and
> > set compiler option accordingly (or at least output the values, so
> > everyone can create his own CFLAGS ).
> 
> This kind of test would fit perfectly in a configure script imo,

I don't think so. A "configure" script is run after every update
(at least download). A automatic benchmarking utility would have to run
for several minutes, and the output CFLAGS would 99% surely be reusable
for any later build at the same plattform. Most likely the best flags only
depend on CPU, RAM speed and compiler and nothing else, so they would be
interchangable, too. 

A configure script could however use a status output like /proc/cpuinfo
in Linux to choose the (most likely) best flags, that's of course true... 

gruel