Increase precision on OutputResultOperations

Andrew Moon's x25519 SSE2 code broke reporting because it was too fast.
This commit is contained in:
Jeffrey Walton 2018-12-13 10:48:07 -05:00
parent 12e9d137b2
commit 26fc727f8f
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -122,13 +122,13 @@ void OutputResultOperations(const char *name, const char *provider, const char *
oss << "\n<TR><TD>" << name << " " << operation << (pc ? " with precomputation" : "");
//oss << "<TD>" << provider;
oss << "<TD>" << std::setprecision(2) << std::setiosflags(std::ios::fixed) << (1000*timeTaken/iterations);
oss << "<TD>" << std::setprecision(4) << std::setiosflags(std::ios::fixed) << (1000*timeTaken/iterations);
// Coverity finding
if (g_hertz > 1.0f)
{
const double t = timeTaken * g_hertz / iterations / 1000000;
oss << "<TD>" << std::setprecision(2) << std::setiosflags(std::ios::fixed) << t;
oss << "<TD>" << std::setprecision(4) << std::setiosflags(std::ios::fixed) << t;
}
g_logTotal += log(iterations/timeTaken);