[MPlayer-dev-eng] Re: Compile options

Michael Niedermayer michaelni at gmx.at
Sat Sep 16 22:18:01 CEST 2006


Hi

On Sat, Sep 16, 2006 at 11:43:45PM +0400, Andrew Savchenko wrote:
> > Andrew Savchenko <Bircoph <at> list.ru> writes:
> > > > -O4:
> > > > BENCHMARKs: VC:  69.572s VO:   8.038s A:   2.032s Sys:  79.365s =
> > > > 159.007s BENCHMARK%: VC: 43.7541% VO:  5.0551% A:  1.2780% Sys:
> > > > 49.9129% = 100.0000%
> > > >
> > > > real    2m39.531s
> > > > user    1m12.721s
> > > > sys     0m0.652s
> > > >
> > > > -O2:
> > > > BENCHMARKs: VC:  67.075s VO:   7.877s A:   1.984s Sys:  82.081s =
> > > > 159.017s BENCHMARK%: VC: 42.1811% VO:  4.9537% A:  1.2475% Sys:
> > > > 51.6176% = 100.0000%
> > > >
> > > > real    2m39.629s
> > > > user    1m9.408s
> > > > sys     0m0.680s
> > >
> > > I misunderstand you.
> >
> > Yes. Sorry about that.
> >
> > -O2 is 2% - 5% faster than -O4. Please try to confirm.
> 
> I've made my own test and I can't confirm your result. My test technique 
> is described below.
> 
> System: AthlonXP 2500 oc 3200, 1.5 Gb RAM (dual mode)
> kernel: 2.6.14-1.1653.1asp
> gcc: gcc-4.0.2-8.fc4
> mplayer: dev-SVN-r19848-4.0.2
> ntp was disabled during testing.
> 
> Compile options:
> for -O4:
> OPTFLAGS = -Wdeclaration-after-statement -fno-PIC -O4 -march=athlon-xp 
> -fexpensive-optimizations -mtune=athlon-xp -pipe -ffast-math 
> -fomit-frame-pointer -D_REENTRANT  -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $(EXTRA_INC)
> 
> for -O2:
> OPTFLAGS = -Wdeclaration-after-statement -fno-PIC -O2 -march=athlon-xp 
> -fexpensive-optimizations -mtune=athlon-xp -pipe -ffast-math 
> -fomit-frame-pointer -D_REENTRANT  -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $(EXTRA_INC)
> 
> !!! Make sure to $make distclean before recompiling MPlayer !!!
> 
> mplayer's default options (from ~/.mplayer/config; other config files 
> (in etc/ and others) are absent):
> vo=x11
> ao=alsa,jack,
> fs="1"
> zoom="1"
> sws=10
> mc=0
> autosync=30
> vf=pp=ac,hue,screenshot
> autoq=100
> spuaa=4
> font="/usr/share/fonts/default/Type1/n019003l.pfb"
> subcp="cp1251"
> subfont-autoscale="1"
> subfont-text-scale="4.0"
> subfont-osd-scale="3.5"
> dr="1"
> nortc="1"
> 
> Test file was high-quality short anime, about 3:11 length.
> 
> It was tested with the following command:
> for -O4:
> for (( i=0; i-10; i++ )); do ( echo phase $i: >> ../O4.res; 
> time ./mplayer file.avi -osdlevel 3 -stop-xscreensaver >> ../O4.res 

without -benchmark -nosound the time decoding a file obviously will be >= the
length of the file timewise which makes the results pretty meaningless

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is



More information about the MPlayer-dev-eng mailing list