mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 01:49:41 +00:00
Use better names than Benchmark1, Benchmark2, etc
This commit is contained in:
parent
d7b2982e32
commit
bb29b5e10e
8
bench.h
8
bench.h
@ -76,13 +76,13 @@ void BenchmarkWithCommand(int argc, const char* const argv[]);
|
||||
// Top level, prints preamble and postamble
|
||||
void Benchmark(Test::TestClass suites, double t, double hertz);
|
||||
// Unkeyed systems
|
||||
void Benchmark1(double t, double hertz);
|
||||
void BenchmarkUnkeyedAlgorithms(double t, double hertz);
|
||||
// Shared key systems
|
||||
void Benchmark2(double t, double hertz);
|
||||
void BenchmarkSharedKeyedAlgorithms(double t, double hertz);
|
||||
// Public key systems over integers
|
||||
void Benchmark3(double t, double hertz);
|
||||
void BenchmarkPublicKeyAlgorithms(double t, double hertz);
|
||||
// Public key systems over elliptic curves
|
||||
void Benchmark4(double t, double hertz);
|
||||
void BenchmarkEllipticCurveAlgorithms(double t, double hertz);
|
||||
|
||||
// These are defined in bench1.cpp
|
||||
extern void OutputResultKeying(double iterations, double timeTaken);
|
||||
|
10
bench1.cpp
10
bench1.cpp
@ -387,7 +387,7 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
|
||||
std::cout << "\n<BR>";
|
||||
count_breaks++;
|
||||
|
||||
Benchmark1(t, hertz);
|
||||
BenchmarkUnkeyedAlgorithms(t, hertz);
|
||||
}
|
||||
|
||||
// Shared key algorithms
|
||||
@ -397,7 +397,7 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
|
||||
std::cout << "\n<BR>";
|
||||
count_breaks++;
|
||||
|
||||
Benchmark2(t, hertz);
|
||||
BenchmarkSharedKeyedAlgorithms(t, hertz);
|
||||
}
|
||||
|
||||
// Public key algorithms
|
||||
@ -407,7 +407,7 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
|
||||
std::cout << "\n<BR>";
|
||||
count_breaks++;
|
||||
|
||||
Benchmark3(t, hertz);
|
||||
BenchmarkPublicKeyAlgorithms(t, hertz);
|
||||
}
|
||||
|
||||
// Public key algorithms over EC
|
||||
@ -417,7 +417,7 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
|
||||
std::cout << "\n<BR>";
|
||||
count_breaks++;
|
||||
|
||||
Benchmark4(t, hertz);
|
||||
BenchmarkEllipticCurveAlgorithms(t, hertz);
|
||||
}
|
||||
|
||||
g_testEnd = ::time(NULLPTR);
|
||||
@ -434,7 +434,7 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
|
||||
AddHtmlFooter();
|
||||
}
|
||||
|
||||
void Benchmark1(double t, double hertz)
|
||||
void BenchmarkUnkeyedAlgorithms(double t, double hertz)
|
||||
{
|
||||
g_allocatedTime = t;
|
||||
g_hertz = hertz;
|
||||
|
@ -80,7 +80,7 @@ void BenchMarkByName(const char *factoryName, size_t keyLength=0, const char *di
|
||||
BenchMarkByName2<T_FactoryOutput,T_FactoryOutput>(factoryName, keyLength, displayName, params);
|
||||
}
|
||||
|
||||
void Benchmark2(double t, double hertz)
|
||||
void BenchmarkSharedKeyedAlgorithms(double t, double hertz)
|
||||
{
|
||||
g_allocatedTime = t;
|
||||
g_hertz = hertz;
|
||||
|
@ -300,7 +300,7 @@ void BenchMarkKeyAgreement(const char *filename, const char *name, double timeTo
|
||||
BenchMarkAgreement(name, d, timeTotal);
|
||||
}
|
||||
|
||||
void Benchmark3(double t, double hertz)
|
||||
void BenchmarkPublicKeyAlgorithms(double t, double hertz)
|
||||
{
|
||||
g_allocatedTime = t;
|
||||
g_hertz = hertz;
|
||||
@ -370,7 +370,7 @@ void Benchmark3(double t, double hertz)
|
||||
std::cout << "\n</TABLE>" << std::endl;
|
||||
}
|
||||
|
||||
void Benchmark4(double t, double hertz)
|
||||
void BenchmarkEllipticCurveAlgorithms(double t, double hertz)
|
||||
{
|
||||
g_allocatedTime = t;
|
||||
g_hertz = hertz;
|
||||
|
Loading…
Reference in New Issue
Block a user