|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54091 - sandbox/monotonic/libs/monotonic/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-19 00:40:17
Author: cschladetsch
Date: 2009-06-19 00:40:14 EDT (Fri, 19 Jun 2009)
New Revision: 54091
URL: http://svn.boost.org/trac/boost/changeset/54091
Log:
limts for test_set_vector in MSVC, as boost::fast_pool is really slow here
Text files modified:
sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp | 9 ++++++++-
1 files changed, 8 insertions(+), 1 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-19 00:40:14 EDT (Fri, 19 Jun 2009)
@@ -268,7 +268,7 @@
result.std_elapsed = timer.elapsed();
}
- cout << ".";
+ cout << "." << flush;
//cout << length << ": fast_pool, pool, std, mono, local: " << result.fast_pool_elapsed << ", " << result.pool_elapsed << ", " << result.std_elapsed << ", " << result.mono_elapsed << ", " << result.local_mono_elapsed << endl;
return result;
}
@@ -299,7 +299,14 @@
void compare_memory_pool()
{
cout << "test_set_vector";
+#ifdef WIN32
+ // boost::fast_pool seems bad at this test with MSVC, so do it less.
+ // this will result in less accurate results, but that doesnt matter because monotonic is orders of magnitudes faster
+ // than fast_pool here...
+ PrintResults(compare_memory_pool(10, 1000, 5, test_set_vector()));
+#else
PrintResults(compare_memory_pool(500, 1000, 10, test_set_vector()));
+#endif
cout << "test_dupe_list";
PrintResults(compare_memory_pool(500, 2000, 10, test_dupe_list()));
cout << "test_dupe_vector";
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