Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2004-05-05 13:58:32


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. 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)

-- 
Eric Niebler
Boost Consulting
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