tools: add benchmark for crypto functions.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 16 May 2013 18:10:11 +0000 (20:10 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Wed, 4 Sep 2013 14:36:11 +0000 (16:36 +0200)
commitd5b58f678dcb045c873def4d243348a031c902c8
treeb57e3558c31e78ef72b663255b92a2f2a8350e32
parentdc8f732292fcab3f72462abbc0d71ab3f87b59b3
tools: add benchmark for crypto functions.

The benchmark tests the speed of the following algorithms:
MD5, SHA-1, SHA-256, SHA-512, RIPEMD-160, AES-128.

It can optionally be built to perform the same benchmark on
other crypto libraries, for comparison purposes.
The supported libraries are:
- crypto:   OpenSSL's libcrypto;
- gcrypt:   GnuTLS's libgcrypt;
- tomcrypt: LibTomCrypt
To enable them, use this syntax:
make VERSUS=crypto+gcrypt+tomcrypt tools/crypto_bench
They do not need to have been enabled in configure.
.gitignore
libavutil/Makefile
tools/crypto_bench.c [new file with mode: 0644]