diff options
author | lloyd <[email protected]> | 2008-09-07 20:51:44 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-07 20:51:44 +0000 |
commit | 50f5cc1a60818061e8824184c1f65074f1e77b0c (patch) | |
tree | c1334c03845ea193f1abb4d9a78a4eec35308772 /checks | |
parent | ef7db49678b02d488bd329e020c30817039d0df7 (diff) |
Reduce how often DSA and DH keys are generated during benchmarks
Diffstat (limited to 'checks')
-rw-r--r-- | checks/pk_bench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp index df1c6cde1..78c89a74f 100644 --- a/checks/pk_bench.cpp +++ b/checks/pk_bench.cpp @@ -162,7 +162,7 @@ void benchmark_dsa_nr(RandomNumberGenerator& rng, std::auto_ptr<PK_Signer> sig(get_pk_signer(key, padding)); std::auto_ptr<PK_Verifier> ver(get_pk_verifier(key, padding)); - benchmark_sig_ver(*ver, *sig, verify_timer, sig_timer, rng, 100, seconds); + benchmark_sig_ver(*ver, *sig, verify_timer, sig_timer, rng, 1000, seconds); } const std::string nm = algo_name + "-" + to_string(pbits); @@ -206,7 +206,7 @@ void benchmark_dh(RandomNumberGenerator& rng, SecureVector<byte> secret1, secret2; - for(u32bit i = 0; i != 100; ++i) + for(u32bit i = 0; i != 1000; ++i) { if(kex_timer.seconds() > seconds) break; |