aboutsummaryrefslogtreecommitdiffstats
path: root/checks/pk_bench.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-07 20:51:44 +0000
committerlloyd <[email protected]>2008-09-07 20:51:44 +0000
commit50f5cc1a60818061e8824184c1f65074f1e77b0c (patch)
treec1334c03845ea193f1abb4d9a78a4eec35308772 /checks/pk_bench.cpp
parentef7db49678b02d488bd329e020c30817039d0df7 (diff)
Reduce how often DSA and DH keys are generated during benchmarks
Diffstat (limited to 'checks/pk_bench.cpp')
-rw-r--r--checks/pk_bench.cpp4
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;