summaryrefslogtreecommitdiff
path: root/libavutil/Makefile
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-05-16 20:10:11 +0200
committerNicolas George <nicolas.george@normalesup.org>2013-09-04 16:36:11 +0200
commitd5b58f678dcb045c873def4d243348a031c902c8 (patch)
treeb57e3558c31e78ef72b663255b92a2f2a8350e32 /libavutil/Makefile
parentdc8f732292fcab3f72462abbc0d71ab3f87b59b3 (diff)
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.
Diffstat (limited to 'libavutil/Makefile')
-rw-r--r--libavutil/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/Makefile b/libavutil/Makefile
index 50067672c9..7b3b439e70 100644
--- a/libavutil/Makefile
+++ b/libavutil/Makefile
@@ -159,6 +159,9 @@ TESTPROGS = adler32 \
TESTPROGS-$(HAVE_LZO1X_999_COMPRESS) += lzo
-TOOLS = ffhash ffeval ffescape
+TOOLS = crypto_bench ffhash ffeval ffescape
+
+tools/crypto_bench$(EXESUF): ELIBS += $(if $(VERSUS),$(subst +, -l,+$(VERSUS)),)
+tools/crypto_bench$(EXESUF): CFLAGS += -DUSE_EXT_LIBS=0$(if $(VERSUS),$(subst +,+USE_,+$(VERSUS)),)
$(SUBDIR)lzo-test$(EXESUF): ELIBS = -llzo2