Boost logo

Boost :

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


On 5/26/2011 3:02 PM, Phil Bouchard wrote:
>
> *** worker_make ***:
> push %r12
> xor %r12d,%r12d
> push %rbp
> xor %ebp,%ebp
> push %rbx
> nopl 0x0(%rax)
>
> <void worker_make<std::auto_ptr<int>, &(std::auto_ptr<int>
> make_auto<int>())>()+16>:
> mov $0x4,%edi
> callq 0x405288 <_Znwm_at_plt> (operator new)
> mov %rax,%rbx
> xor %edi,%edi
> callq 0x405058 <_ZdlPv_at_plt> (operator delete)
...

On each iteration worker_make calls delete explaining why it is twice
slower than worker_new. I'm not sure what it is deleting.

-Phil


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