From: Larry Evans (jcampbell3_at_[hidden])
Date: 2002-08-10 16:31:42
Peter Dimov wrote:
>From: "Philippe A. Bouchard" <philippeb_at_[hidden]>
>Philippe, try using #define BOOST_DISABLE_THREADS to get a fair comparison.
>Looking at the times, I get the feeling that shared_ptr is using the thread
>safe path. Apologies if this is not the case.
I tried the benchmark on my machine and got much different results. The
differences between shared_ptr and ptr were much less and
seemed to slow things up! (based on compare of benchmark1.1.txt and
My machine takes much longer on the sorts.
Anyway, I'll have to investigate to really figure why, but maybe
is a lot different than mine:
[evansl_at_localhost evansl]$ uname -a
Linux localhost.localdomain 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002
[evansl_at_localhost evansl]$ g++ -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/specs
gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)
The files are in the boost files in directory ptr_evans.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk