[FFmpeg-devel] [PATCH] tools: add benchmark for hash functions.

James Almer jamrial at gmail.com
Mon Jun 17 01:01:00 CEST 2013

On 17/05/13 12:44 PM, Nicolas George wrote:
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  .gitignore         |    1 +
>  libavutil/Makefile |    4 +-
>  tools/hash_bench.c |  147 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 151 insertions(+), 1 deletion(-)
>  create mode 100644 tools/hash_bench.c
> Mostly for reference, I have no idea whether it deserves to be included.
> Note that the resulting binary is unredistributable.

What about this? IMO, better have it in the tools folder than rotting away in the mailing list.
It will however need to use some #ifdefery and makefile checks to link with openssl only if 
ffmpeg is configured with --enable-openssl.

Also make it support other hashes from lavu and openssl like Reimar suggested, but i can take 
care of that after it's committed if you want.


More information about the ffmpeg-devel mailing list