diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-13 10:48:07 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-13 10:48:07 -0500 |
commit | 26fc727f8f7757cea1ee642f76b7e068df7feb41 (patch) | |
tree | ef8f9b61967dadd72558a7f204f4e07323aca9d1 /bench1.cpp | |
parent | 12e9d137b20ecc40e9fdbc3eac77bd2127fedcf8 (diff) | |
download | cryptopp-git-26fc727f8f7757cea1ee642f76b7e068df7feb41.tar.gz |
Increase precision on OutputResultOperations
Andrew Moon's x25519 SSE2 code broke reporting because it was too fast.
Diffstat (limited to 'bench1.cpp')
-rw-r--r-- | bench1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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);
|