Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54074 - sandbox/monotonic/libs/monotonic/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-18 20:32:42


Author: cschladetsch
Date: 2009-06-18 20:32:42 EDT (Thu, 18 Jun 2009)
New Revision: 54074
URL: http://svn.boost.org/trac/boost/changeset/54074

Log:
better compare_pool
Text files modified:
   sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp | 12 +++++-------
   1 files changed, 5 insertions(+), 7 deletions(-)

Modified: sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp 2009-06-18 20:32:42 EDT (Thu, 18 Jun 2009)
@@ -94,8 +94,8 @@
                 result.fast_pool_elapsed = timer.elapsed();
         }
 
- // test boost::pool_allocator. dont bother for larger sizes as it is known to be slow
- if (1)//length < 3000)
+ // test boost::pool_allocator.
+ if (1)
         {
                 boost::timer timer;
                 srand(42);
@@ -134,7 +134,7 @@
         if (1)
         {
                 srand(42);
- monotonic::local<monotonic::storage<100000> > storage;
+ monotonic::local<> storage;
                 boost::timer timer;
                 for (size_t n = 0; n < count; ++n)
                 {
@@ -190,15 +190,13 @@
 
 void compare_memory_pool()
 {
- cout << "thrash_pool_iter" << endl;
- PrintResults(compare_memory_pool(50000, 1000, 10, thrash_pool_iter()));
         cout << "thrash_pool" << endl;
         PrintResults(compare_memory_pool(50000, 1000, 10, thrash_pool()));
+ cout << "thrash_pool_iter" << endl;
+ PrintResults(compare_memory_pool(50000, 1000, 10, thrash_pool_iter()));
         cout << "thrash_pool_sort" << endl;
         PrintResults(compare_memory_pool(1000, 500, 10, thrash_pool_sort()));
 }
 
 //EOF
 
-
-


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