Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54233 - sandbox/monotonic/libs/monotonic/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-22 17:25:23


Author: cschladetsch
Date: 2009-06-22 17:25:22 EDT (Mon, 22 Jun 2009)
New Revision: 54233
URL: http://svn.boost.org/trac/boost/changeset/54233

Log:
added test_map_erase

Text files modified:
   sandbox/monotonic/libs/monotonic/test/Tests.h | 2 +-
   sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp | 11 ++++++++---
   2 files changed, 9 insertions(+), 4 deletions(-)

Modified: sandbox/monotonic/libs/monotonic/test/Tests.h
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/Tests.h (original)
+++ sandbox/monotonic/libs/monotonic/test/Tests.h 2009-06-22 17:25:22 EDT (Mon, 22 Jun 2009)
@@ -184,7 +184,7 @@
 //Build a std::map of size n. Loop for O(n^2) iterations.
 //In each iteration insert one random element and lookup with lower_bound one random element and remove it.
 //Precompute the random numbers and don't include the rand() calls in the time measurement of the benchmark.
-
+//http://tinyurl.com/mp6sub
 struct test_map_erase
 {
         template <class Alloc>

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-22 17:25:22 EDT (Mon, 22 Jun 2009)
@@ -324,7 +324,7 @@
                         // destroy objects. this only calls the destructors; it does not release memory
                         storage.destroy(s1);
 
- //cout << "storage.fixed, heap, total used: " << storage.fixed_used() << ", " << storage.heap_used() << ", " << storage.used() << endl;
+ cout << "storage.fixed, heap, total used: " << storage.fixed_used() << ", " << storage.heap_used() << ", " << storage.used() << endl;
                 }
                 // storage is released. if this was only ever on the stack, no work is done
         }
@@ -337,7 +337,8 @@
                 cout << "results of running test at:" << endl;
                 cout << "https://svn.boost.org/svn/boost/sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp" << endl << endl;
 
- test_pools();
+ //test_pools();
+ //return 0;
 
                 boost::timer timer;
                 Type test_map_vector_types;
@@ -347,7 +348,11 @@
                 bool run_medium = 1;//true;
                 bool run_large = 1;//true;
 
- //print(run_tests(1000, 100, 10, "test_map_erase<int>", test_map_erase()));
+ // test for Luke
+ //Type types = Type::None;
+ //types.Include(Type::TBB);
+ //types.Include(Type::Monotonic);
+ //print(run_tests(2, 10000, 2, "test_map_erase<int>", test_map_erase(), types));
                 //return 0;
 
                 // small-size (~100 elements) containers


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