Subject: Re: [boost] [Block Pointer] benchmark
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-05-24 19:07:51
On 24 May 2011 17:40, Phil Bouchard <philippe_at_[hidden]> wrote:
> Just for the records I have benchmarked block_ptr using:
> 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
That is *a lot* of overhead...
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk