[FFmpeg-devel] [PATCH 2/5] fate: avoid framemd5, use framecrc its faster

Michael Niedermayer michaelni at gmx.at
Thu May 9 15:51:17 CEST 2013


On Thu, May 09, 2013 at 03:16:12PM +0200, Nicolas George wrote:
> Le decadi 20 floréal, an CCXXI, compn a écrit :
> > anyone check if our md5sum implementation was the fastest?
> 
> Very good point. It is not:
> 
> ffmpeg -f md5:  34.61s user 0.88s system
> ffmpeg -f null: 16.69s user 0.92s system
> md5sum (GNU):    6.69s user 0.80s system
> openssl md5:     5.82s user 0.93s system
> 
> On a 1.657 Go file and Atom D525 1.80GHz.
> 
> So lavu's MD5 is somewhere between 2.5 and 5 times slower than GNU's, which
> itself is 15% slower than OpenSSL. This is not a very careful benchmark, but
> I believe it is enough to say that there is a lot of room for improvement in
> lavu.

hmm, i get:
ffmpeg -f rawvideo md5:  user    0m2.212s    sys 0m0.428s
ffmpeg -f md5 -          user    0m2.192s    sys 0m0.408s
ffmpeg -f crc -          user    0m0.356s    sys 0m0.408s
ffmpeg -f null -         user    0m0.008s    sys 0m0.084s
aviocat md5:             user    0m2.004s    sys 0m0.108s
gnu md5sum               user    0m1.272s    sys 0m0.116s
ffadler                  user    0m0.164s    sys 0m0.060s

Note, my ffmpeg tests did read the random file as if it was
rawvideo (which it was not) no real demuxing thus done
test done with a random 900mb file on sandybridge i7 4ghz

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130509/c11e3567/attachment.asc>


More information about the ffmpeg-devel mailing list