Boost logo

Boost :

Subject: [boost] [Block Pointer] benchmark
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-05-24 18:40:38


Hi,

Just for the records I have benchmarked block_ptr using:
https://svn.boost.org/svn/boost/sandbox/block_ptr/libs/smart_ptr/example/benchmark.cpp

And I get the following:
auto_ptr: 9208870 ns
shared_ptr: 22958516 ns
block_ptr: 75860365 ns

Which is pretty good given the complexity it goes thru.

I was wondering if there is any hope in having a pool::ordered_malloc()
call of O(1) instead of O(n) and a faster pool::is_from()? The latter
could be just a check to see if a pointer is within reserved memory
pages of the pool. I tried to talk to the author of pool but I got no
response.

Thanks,
-Phil


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