|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76108 - trunk/libs/crc/test
From: dwalker07_at_[hidden]
Date: 2011-12-22 15:51:34
Author: dlwalker
Date: 2011-12-22 15:51:34 EST (Thu, 22 Dec 2011)
New Revision: 76108
URL: http://svn.boost.org/trac/boost/changeset/76108
Log:
Made speed-difference report easier to understand.
Text files modified:
trunk/libs/crc/test/crc_test.cpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Modified: trunk/libs/crc/test/crc_test.cpp
==============================================================================
--- trunk/libs/crc/test/crc_test.cpp (original)
+++ trunk/libs/crc/test/crc_test.cpp 2011-12-22 15:51:34 EST (Thu, 22 Dec 2011)
@@ -456,12 +456,12 @@
quick_result, ran_data, sizeof(ran_data) );
// Report results
- cout << "\tThe optimal Boost version is " << (quick_rate - optimal_rate)
- / quick_rate * 100.0 << "% slower than the reference version.\n";
- cout << "\tThe basic Boost version is " << (quick_rate - basic_rate)
- / quick_rate * 100.0 << "% slower than the reference version.\n";
- cout << "\tThe basic Boost version is " << (optimal_rate - basic_rate)
- / optimal_rate * 100.0 << "% slower than the optimal Boost version."
+ cout << "\tThe optimal Boost version has " << optimal_rate / quick_rate *
+ 100.0 << "% the speed of the reference version.\n";
+ cout << "\tThe basic Boost version has " << basic_rate / quick_rate * 100.0
+ << "% the speed of the reference version.\n";
+ cout << "\tThe basic Boost version has " << basic_rate / optimal_rate *
+ 100.0 << "% the speed of the optimal Boost version."
<< endl;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk