Boost logo

Boost :

Subject: Re: [boost] [Block Pointer] benchmark
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-05-26 20:22:01

On 5/26/2011 4:44 PM, Frank Mori Hess wrote:
> Note, I moved the declaration of the shared_ptrs inside the loops. Also,
> your benchmark on my machine shows a strong dependence on the order the
> tests are run. The first run is slower, which is why the "new" result is
> before the "make" result above, to demonstrate the effect.

You're right but make remains the same:
shared_ptr: 21234066 ns
shared_ptr: 18122766 ns

shared_ptr: 18271141 ns
shared_ptr: 13395539 ns

But after analyzing the assembler dump of worker_make with block_ptr
it's obvious RVO is a lie.


Boost list run by bdawes at, gregod at, cpdaniel at, john at