[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec mpegvideo.c,1.511,1.512

Loren Merritt lorenm
Fri Mar 24 10:17:59 CET 2006


On Thu, 23 Mar 2006, Diego Biurrun wrote:
> On Thu, Mar 23, 2006 at 10:54:50PM +0100, Loren Merritt CVS wrote:
>>
>> Modified Files:
>> 	mpegvideo.c
>> Log Message:
>> prefetch pixels for future motion compensation. 4-10% faster mpeg1/2/4.
>
> Have you benchmarked FFmpeg against libmpeg2 after the change?  Would be
> very interesting...

Comparing just before and after the prefetch patch.
Both versions on both computers were compiled with gcc 3.4.5.
Each entry is the mean and std dev of usertime of 5 runs of
`time mplayer -benchmark -vo null -nosound -quiet -vfm ffmpeg infile`

AthlonXP 2500:

fma.mkv (h264 30:00 720x480 727kb/s, x264 w/ all features enabled)
372.396 +- .631  old
353.806 +- .451  prefetch
+5.3%

serenity.mov (h264 2:22 1920x816 8006kb/s, apple baseline + B-frames)
128.505 +- .026  old
122.348 +- .036  prefetch
+5.0%

mh1.avi (asp 23:54 640x480 895kb/s)
  75.572 +- .121  old
  72.052 +- .229  prefetch
+4.8%

bg12.avi (asp 21:40 960x528 2373kb/s)
183.208 +- .398  old
172.212 +- .256  prefetch
+6.4%

sr16.avi (asp 23:24 704x400 749kb/s)
108.372 +- .449  old
  98.214 +- .220  prefetch
+10.3%

sensation.m2p (mpeg2 3:36 720x576 9954kb/s)
  34.258 +- .043  libmpeg2
  29.348 +- .137  old
  28.562 +- .023  prefetch
+2.8%

matrix1.vob (mpeg2 4:44 720x576 2987kb/s)
  37.748 +- .119  libmpeg2
  34.252 +- .041  old
  31.572 +- .066  prefetch
+8.5%

kgne2.vob (mpeg2 24:55 720x480 8624kb/s)
222.380 +- .221  libmpeg2
202.632 +- .081  old
191.378 +- .093  prefetch
+5.9%


Athlon64 3400 (in 64bit mode):

fma.mkv
229.028 +- .069  old
219.316 +- .044  prefetch
+4.4%

serenity.mov
  81.655 +- .017  old
  79.777 +- .023  prefetch
+2.4%

mh1.avi
  40.685 +- .226  old
  38.909 +- .125  prefetch
+4.6%

bg12.avi
103.566 +- .295  old
  97.472 +- .304  prefetch
+6.3%

sensation.m2p
  21.446 +- .094  libmpeg2
  17.660 +- .073  old
  17.416 +- .071  prefetch
+1.4%

matrix1.vob
  23.354 +- .076  libmpeg2
  19.684 +- .089  old
  18.764 +- .062  prefetch
+4.9%


--Loren Merritt





More information about the ffmpeg-cvslog mailing list