
24 May
2011
24 May
'11
11:07 p.m.
On 24 May 2011 17:40, Phil Bouchard <philippe@fornux.com> wrote:
Hi,
Just for the records I have benchmarked block_ptr using:
https://svn.boost.org/svn/boost/sandbox/block_ptr/libs/smart_ptr/example/ben...
And I get the following: auto_ptr: 9208870 ns shared_ptr: 22958516 ns block_ptr: 75860365 ns
Which is pretty good given the complexity it goes thru.
Your claim is " It is a fast as the popular smart pointer * boost::shared_ptr<T>*". Yet, in single-threaded code and shared_ptr using new instead of make_shared, block_ptr still takes 3.3x as long as shared_ptr. That is *a lot* of overhead... -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404