Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54043 - sandbox/monotonic/libs/monotonic/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-17 20:27:53


Author: cschladetsch
Date: 2009-06-17 20:27:53 EDT (Wed, 17 Jun 2009)
New Revision: 54043
URL: http://svn.boost.org/trac/boost/changeset/54043

Log:
fixed output for test_map_list
Text files modified:
   sandbox/monotonic/libs/monotonic/test/test_map_list.cpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: sandbox/monotonic/libs/monotonic/test/test_map_list.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/test_map_list.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/test_map_list.cpp 2009-06-17 20:27:53 EDT (Wed, 17 Jun 2009)
@@ -96,15 +96,16 @@
         }
 
         cout << "test_map_list" << endl;
+ cout << "count\t" << "mono\t" << "mono_static\t" << "std\t" << "std/mono\t" << "std/mono_static" << endl;
         BOOST_FOREACH(Results::value_type const &iter, results)
         {
                 Result const &result = iter.second;
                 double mono_time = result.mono;
                 double std_time = result.standard;
                 double static_time = result.static_monotonic;
- double perc1 = mono_time/std_time;
- double perc2 = static_time/std_time;
- cout << iter.first << '\t' << mono_time << '\t' << static_time << '\t' << std_time << '\t' << perc1 << "%\t" << perc2 << "%"<< endl;
+ double perc1 = 100.*std_time/mono_time;
+ double perc2 = 100.*std_time/static_time;
+ cout << iter.first << '\t' << mono_time << '\t' << static_time << "\t\t" << std_time << '\t' << perc1 << "%\t" << perc2 << "%"<< 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