Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-05-05 19:52:44


"Eric Niebler" <eric_at_[hidden]> writes:

> David Abrahams wrote:
>
>> John Torjo <john.lists_at_[hidden]> writes:
>>
>>>Dear boosters,
>>>In the "looping construct" thread, a while ago David Abrahams said
>>>that we should do a test, to compare all looping solutions.
>>>
>>>I've made such a test. It tests against:
>>>- keeping internal functions in crange<>
>>>- virtual functions
>>>- BOOST_FOREACH
>>>comparing to using raw iterators.
>> Where can we see the results?
>
>
>
> I noticed they were included in the .zip file John sent.

I didn't see an attachment.

> Here is the summary:
>
> Averages for 128000elements (except first test):
> raw time : 229.127 secs
> func calls : 323.871 secs (avg percentage 183.074)
> vtable calls: 307.038 secs (avg percentage 174.966)
> foreach calls: 236.767 secs (avg percentage 104.929)

Note too that other compilers may exhibit different tradeoffs.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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