summaryrefslogtreecommitdiff
path: root/bench.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-08-22 05:10:25 -0400
committerGitHub <noreply@github.com>2017-08-22 05:10:25 -0400
commit559fc3bd8959d4ed86aae7d3f28a1a807c52a44f (patch)
treee1c7855ca91967d20626e61cba412bb68d02f73f /bench.h
parent7851a0d5106dfb287f30ca0432285c15c679cf96 (diff)
downloadcryptopp-git-559fc3bd8959d4ed86aae7d3f28a1a807c52a44f.tar.gz
Fix benchmark selection code (GH #464)
Diffstat (limited to 'bench.h')
-rw-r--r--bench.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/bench.h b/bench.h
index c958181b..59bfbf2c 100644
--- a/bench.h
+++ b/bench.h
@@ -16,13 +16,14 @@ NAMESPACE_BEGIN(Test)
// More granular control over benchmarks
enum TestClass {
- UnkeyedRNG=1,UnkeyedHash=2,UnkeyedOther=4,
- SharedKeyMAC=8,SharedKeyStream=16,SharedKeyBlock=32,SharedKeyOther=64,
- PublicKeyAgreement=128,PublicKeyEncryption=256,PublicKeySignature=512,PublicKeyOther=1024,
+ UnkeyedRNG=(1<<0),UnkeyedHash=(1<<1),UnkeyedOther=(1<<2),
+ SharedKeyMAC=(1<<3),SharedKeyStream=(1<<4),SharedKeyBlock=(1<<5),SharedKeyOther=(1<<6),
+ PublicKeyAgreement=(1<<7),PublicKeyEncryption=(1<<8),PublicKeySignature=(1<<9),PublicKeyOther=(1<<10),
Unkeyed=UnkeyedRNG|UnkeyedHash|UnkeyedOther,
SharedKey=SharedKeyMAC|SharedKeyStream|SharedKeyBlock|SharedKeyOther,
PublicKey=PublicKeyAgreement|PublicKeyEncryption|PublicKeySignature|PublicKeyOther,
- All=Unkeyed|SharedKey|PublicKey
+ All=Unkeyed|SharedKey|PublicKey,
+ TestFirst=(0), TestLast=(1<<11)
};
extern const double CLOCK_TICKS_PER_SECOND;