diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-08-07 04:20:37 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-08-07 04:20:37 -0400 |
commit | 1a5155fd96a6c5c04c11c29f39e94a29290bfe83 (patch) | |
tree | 5b7e32f67dfb0fe4ba1a14b9be4b546d3f5b373f /bench1.cpp | |
parent | f3dd3d25592ceb688d2b32475f72118222869516 (diff) | |
download | cryptopp-git-1a5155fd96a6c5c04c11c29f39e94a29290bfe83.tar.gz |
Split public key benchmarks into integers and elliptic curves
Diffstat (limited to 'bench1.cpp')
-rw-r--r-- | bench1.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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;
|