David Abrahams <[EMAIL PROTECTED]> writes: > "Peter Dimov" <[EMAIL PROTECTED]> writes: > >> >> You might need to use a lower n. Here's what I get (randomly choosing >> g++/mingw): >> >> GNU C++ version 2.95.3-6 (mingw special) >> Win32 > > Wow, that's a much bigger improvement than I saw! I wonder why?
Improvements with MinGW-3.2 are much less-pronounced (no big surprise there), and we do a bit worse in the <int> case for reasons I can readily guess at ;-): GNU C++ version 3.2 (mingw special 20020817-1) Win32 GNU libstdc++ version 20020816 BOOST_HAS_THREADS: (not defined) BOOST_SP_USE_STD_ALLOCATOR: (defined) BOOST_SP_USE_QUICK_ALLOCATOR: (not defined) 1048576 shared_ptr<int> allocations + deallocations: 1.021 seconds. 1.242 seconds. 1.172 seconds. 1048576 shared_ptr<X> allocations + deallocations: 0.631 seconds. 0.531 seconds. 0.611 seconds. 1048576 shared_ptr<Y> allocations + deallocations: 0.761 seconds. 0.651 seconds. 0.531 seconds. 1048576 shared_ptr<Z> allocations + deallocations: 1.232 seconds. 1.142 seconds. 1.252 seconds. -- GNU C++ version 3.2 (mingw special 20020817-1) Win32 GNU libstdc++ version 20020816 BOOST_HAS_THREADS: (not defined) BOOST_SP_USE_STD_ALLOCATOR: (not defined) BOOST_SP_USE_QUICK_ALLOCATOR: (defined) 1048576 shared_ptr<int> allocations + deallocations: 1.291 seconds. 0.952 seconds. 1.191 seconds. 1048576 shared_ptr<X> allocations + deallocations: 0.531 seconds. 0.541 seconds. 0.531 seconds. 1048576 shared_ptr<Y> allocations + deallocations: 0.802 seconds. 0.561 seconds. 0.731 seconds. 1048576 shared_ptr<Z> allocations + deallocations: 0.982 seconds. 0.961 seconds. 0.971 seconds. -- David Abrahams [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost