Boost logo

Boost :

Subject: Re: [boost] [Block Pointer] Up to 600% faster than Shared Pointer
From: Phil Bouchard (philippeb8_at_[hidden])
Date: 2016-03-13 12:44:24


On 03/13/2016 11:24 AM, Glen Fernandes wrote:
>
> Results on one machine:
>
> unique_ptr (new): 81.2868
> unique_ptr (make_unique): 83.2583
> shared_ptr (new): 139.141
> shared_ptr (make_shared): 84.8653
>
> It might address one of the concerns Rob had with your benchmark (e.g.
> your use of function pointers).

I just overwrote the benchmark and now I have:

unique_ptr (new): 47.7686
unique_ptr (make_unique): 46.8545
shared_ptr (new): 77.8261
shared_ptr (make_shared): 50.8072
shared_ptr (make_shared_alloc_noinit): 33.021
block_ptr (new): 69.6554

-Phil


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