Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-30 13:31:29


David Abrahams <dave_at_[hidden]> writes:

> "Peter Dimov" <pdimov_at_[hidden]> 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
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk