Boost logo

Boost :

Subject: Re: [boost] What's wrong with this benchmark
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2016-02-17 11:34:47


On 16-02-2016 18:56, Benedek Thaler wrote:
> Dear Boost,
>

> What do I miss here?

Hard to say. I guess instruction order may have an impact on the branch
prediction. But please include a test with unsafe_push_back() for
comparison also.

Some more questions:
A. is the lambda optimized away?
B. Do the test run the same number of times? Is it asserted at runtime?
C. Do you compile via bjam? I mean, is all the right flags present, e.g.
NDEBUG=1?
D. How does the actual code between std::vector and devector compare?
Maybe there could be hints to the difference.

regards

Thorsten


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