MCPcopy Create free account
hub / github.com/LUX-Core/lux / OutputResultOperations

Function OutputResultOperations

src/cryptopp/bench1.cpp:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void OutputResultOperations(const char *name, const char *operation, bool pc, unsigned long iterations, double timeTaken)
81{
82 // Coverity finding, also see http://stackoverflow.com/a/34509163/608639.
83 StreamState ss(cout);
84
85 // Coverity finding
86 if (!iterations) iterations++;
87 if (timeTaken < 0.0000000001f) timeTaken = 0.000001f;
88
89 cout << "\n<TR><TH>" << name << " " << operation << (pc ? " with precomputation" : "");
90 cout << "<TD>" << setprecision(2) << setiosflags(ios::fixed) << (1000*timeTaken/iterations);
91 if (g_hertz)
92 cout << "<TD>" << setprecision(2) << setiosflags(ios::fixed) << timeTaken * g_hertz / iterations / 1000000;
93
94 logtotal += log(iterations/timeTaken);
95 logcount++;
96}
97
98/*
99void BenchMark(const char *name, BlockTransformation &cipher, double timeTotal)

Callers 6

BenchMarkEncryptionFunction · 0.85
BenchMarkDecryptionFunction · 0.85
BenchMarkSigningFunction · 0.85
BenchMarkVerificationFunction · 0.85
BenchMarkKeyGenFunction · 0.85
BenchMarkAgreementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected