diff options
author | Bruno Haible <bruno@clisp.org> | 2018-05-06 16:46:57 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2018-05-06 16:46:57 +0200 |
commit | 207cac7a3714a85b605332434cf2ebc20bbaf3ed (patch) | |
tree | d3627cb7fb9a48e3168b8d5bc8b077db85f35aef /modules/crypto/sha1-tests | |
parent | 902d630a4cd84182c97de9a9c6d49856a8fc79bd (diff) | |
download | gnulib-207cac7a3714a85b605332434cf2ebc20bbaf3ed.tar.gz |
crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
* tests/bench-digest.h: New file.
* tests/bench-md5.c: New file.
* tests/bench-sha1.c: New file.
* tests/bench-sha224.c: New file.
* tests/bench-sha256.c: New file.
* tests/bench-sha384.c: New file.
* tests/bench-sha512.c: New file.
* modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
tests/bench-digest.h.
(Depends-on): Add getrusage, gettimeofday.
(Makefile.am): Add variables to build bench-md5.
* modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
tests/bench-digest.h.
(Depends-on): Add getrusage, gettimeofday.
(Makefile.am): Add variables to build bench-sha1.
* modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
tests/bench-sha256.c, tests/bench-digest.h.
(Depends-on): Add getrusage, gettimeofday.
(Makefile.am): Add variables to build bench-sha224, bench-sha256.
* modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
tests/bench-sha512.c, tests/bench-digest.h.
(Depends-on): Add getrusage, gettimeofday.
(Makefile.am): Add variables to build bench-sha384, bench-sha512.
Diffstat (limited to 'modules/crypto/sha1-tests')
-rw-r--r-- | modules/crypto/sha1-tests | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/crypto/sha1-tests b/modules/crypto/sha1-tests index 493b6db3f9..c0f68cfb9d 100644 --- a/modules/crypto/sha1-tests +++ b/modules/crypto/sha1-tests @@ -1,12 +1,18 @@ Files: tests/test-sha1.c tests/test-digest.h +tests/bench-sha1.c +tests/bench-digest.h Depends-on: +getrusage +gettimeofday configure.ac: Makefile.am: TESTS += test-sha1 check_PROGRAMS += test-sha1 +noinst_PROGRAMS += bench-sha1 test_sha1_LDADD = $(LDADD) @LIB_CRYPTO@ +bench_sha1_LDADD = $(LDADD) @LIB_CRYPTO@ |