summaryrefslogtreecommitdiff
path: root/bench1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-08-07 04:20:37 -0400
committerJeffrey Walton <noloader@gmail.com>2019-08-07 04:20:37 -0400
commit1a5155fd96a6c5c04c11c29f39e94a29290bfe83 (patch)
tree5b7e32f67dfb0fe4ba1a14b9be4b546d3f5b373f /bench1.cpp
parentf3dd3d25592ceb688d2b32475f72118222869516 (diff)
downloadcryptopp-git-1a5155fd96a6c5c04c11c29f39e94a29290bfe83.tar.gz
Split public key benchmarks into integers and elliptic curves
Diffstat (limited to 'bench1.cpp')
-rw-r--r--bench1.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/bench1.cpp b/bench1.cpp
index 04a2e799..eec8f4ad 100644
--- a/bench1.cpp
+++ b/bench1.cpp
@@ -351,6 +351,8 @@ void BenchmarkWithCommand(int argc, const char* const argv[])
if (command == "b") // All benchmarks
Benchmark(Test::All, runningTime, cpuFreq);
+ else if (command == "b4") // Public key algorithms over EC
+ Test::Benchmark(Test::PublicKeyEC, runningTime, cpuFreq);
else if (command == "b3") // Public key algorithms
Test::Benchmark(Test::PublicKey, runningTime, cpuFreq);
else if (command == "b2") // Shared key algorithms
@@ -392,6 +394,13 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
Benchmark3(t, hertz);
}
+ // Public key algorithms over EC
+ if (suites & Test::PublicKeyEC)
+ {
+ std::cout << "\n<BR>";
+ Benchmark4(t, hertz);
+ }
+
g_testEnd = ::time(NULLPTR);
std::ostringstream oss;