Boost logo

Boost :

Subject: Re: [boost] [Block Pointer] Up to 600% faster than Shared Pointer
From: Glen Fernandes (glen.fernandes_at_[hidden])
Date: 2016-03-11 23:12:10


On Fri, Mar 11, 2016 at 9:38 PM, Phil Bouchard <philippeb8_at_[hidden]> wrote:
>
> new:
> auto_ptr: 23174753 ns
> shared_ptr: 49726615 ns
> block_ptr: 7812659 ns
>

Hi Phil,

What exactly are you measuring here? The time taken to construct an
std::auto_ptr<T>/std::shared_ptr<T>/block_ptr<T> inclusive of the time
taken for ::operator new(std::size_t) and inclusive of the
value-initialization T::T() ?

Glen


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