[FFmpeg-devel] [PATCH] tools: add benchmark for crypto functions.
Nicolas George
nicolas.george at normalesup.org
Sat Jul 27 01:46:40 CEST 2013
L'octidi 8 thermidor, an CCXXI, James Almer a écrit :
> I'm getting this when i try to compile with no external libraries. Looks
> like USE_EXT_LIBS is not being defined properly.
Locally fixed. Just add "0" after "-DUSE_EXT_LIBS=" in lavu/Makefile.
> And IMO there's no need to test both SHA224 and SHA256 as they run the
> same code. You could instead test SHA512 or RIPEMD160 (RIPEMD128 is afaik
> only supported by lavu and tomcrypt).
Ok, will do.
> Also, you posted the same results for both the Core i7 and the Athlon II X2.
Indeed, sorry. Here are the results for the Athlon:
lavu MD5 size: 1048576 runs: 1024 time: 5.714 +- 0.108
crypto MD5 size: 1048576 runs: 1024 time: 5.423 +- 0.032
gcrypt MD5 size: 1048576 runs: 1024 time: 6.441 +- 0.036
tomcrypt MD5 size: 1048576 runs: 1024 time: 6.332 +- 0.036
lavu SHA-1 size: 1048576 runs: 1024 time: 11.391 +- 0.056
crypto SHA-1 size: 1048576 runs: 1024 time: 7.096 +- 0.034
gcrypt SHA-1 size: 1048576 runs: 1024 time: 11.979 +- 0.037
tomcrypt SHA-1 size: 1048576 runs: 1024 time: 11.153 +- 0.038
lavu SHA-224 size: 1048576 runs: 1024 time: 20.543 +- 0.047
crypto SHA-224 size: 1048576 runs: 1024 time: 19.838 +- 0.044
gcrypt SHA-224 size: 1048576 runs: 1024 time: 27.502 +- 0.119
tomcrypt SHA-224 size: 1048576 runs: 1024 time: 23.401 +- 0.209
lavu SHA-256 size: 1048576 runs: 1024 time: 20.540 +- 0.049
crypto SHA-256 size: 1048576 runs: 1024 time: 19.842 +- 0.058
gcrypt SHA-256 size: 1048576 runs: 1024 time: 27.509 +- 0.180
tomcrypt SHA-256 size: 1048576 runs: 1024 time: 23.368 +- 0.045
lavu AES-128 size: 1048576 runs: 1024 time: 32.976 +- 0.061
crypto AES-128 size: 1048576 runs: 1024 time: 44.364 +- 0.093
gcrypt AES-128 size: 1048576 runs: 1024 time: 42.924 +- 0.472
tomcrypt AES-128 size: 1048576 runs: 1024 time: 25.707 +- 0.054
Regards,
--
Nicolas George
-------------- 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/20130727/fe2798f1/attachment.asc>
More information about the ffmpeg-devel
mailing list