6a1ea1cc3c
'go for it' espie@
25 lines
959 B
Plaintext
25 lines
959 B
Plaintext
$OpenBSD: patch-bench2_cpp,v 1.1 2011/06/24 07:55:18 dcoppa Exp $
|
|
|
|
Re-enable accidentally disabled benchmarks (upstream rev 527).
|
|
|
|
--- bench2.cpp.orig Fri Aug 6 18:46:24 2010
|
|
+++ bench2.cpp Mon Jun 13 12:30:03 2011
|
|
@@ -232,7 +232,7 @@ extern double g_hertz;
|
|
void BenchmarkAll2(double t, double hertz)
|
|
{
|
|
g_hertz = hertz;
|
|
-#if 0
|
|
+
|
|
cout << "<TABLE border=1><COLGROUP><COL align=left><COL align=right><COL align=right>" << endl;
|
|
cout << "<THEAD><TR><TH>Operation<TH>Milliseconds/Operation" << (g_hertz ? "<TH>Megacycles/Operation" : "") << endl;
|
|
|
|
@@ -275,7 +275,7 @@ void BenchmarkAll2(double t, double hertz)
|
|
BenchMarkKeyAgreement<LUC_DH>("TestData/lucd1024.dat", "LUCDIF 1024", t);
|
|
BenchMarkKeyAgreement<MQV>("TestData/mqv1024.dat", "MQV 1024", t);
|
|
BenchMarkKeyAgreement<MQV>("TestData/mqv2048.dat", "MQV 2048", t);
|
|
-#endif
|
|
+
|
|
cout << "\n<TBODY style=\"background: white\">";
|
|
{
|
|
ECIES<ECP>::Decryptor cpriv(GlobalRNG(), ASN1::secp256k1());
|