Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53818 - sandbox/monotonic/libs/monotonic/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-12 07:10:21


Author: cschladetsch
Date: 2009-06-12 07:10:20 EDT (Fri, 12 Jun 2009)
New Revision: 53818
URL: http://svn.boost.org/trac/boost/changeset/53818

Log:
added comments for first 'realtime' test
Text files modified:
   sandbox/monotonic/libs/monotonic/test/main.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/monotonic/libs/monotonic/test/main.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/main.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/main.cpp 2009-06-12 07:10:20 EDT (Fri, 12 Jun 2009)
@@ -256,7 +256,7 @@
         size_t mod = count/10;
         for (size_t n = 0; n < count; ++n)
         {
- int random = rand();
+ int random = rand() % mod;
                 Map::iterator iter = map.find(random);
                 if (iter == map.end())
                 {
@@ -296,7 +296,7 @@
 void test_map_list_realtime()
 {
         monotonic::inline_storage<1000000> storage;
- const size_t outter_loops = 1000;
+ const size_t outter_loops = 100*1000;
         const size_t inner_loops = 1000;
 
         boost::timer t0;


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