Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-10-26 13:02:02


David Abrahams <dave_at_[hidden]> writes:

> Now, here's the interesting thing: If you change the needless
> postincrement you're using into preincrement, you get:
>
> GCC 3.4.4:
> Test 1 discarded
>
> Test 2
> with operator library: 1.485
> with iterator library: 1.453
>
> Test 3
> with operator library: 1.437
> with iterator library: 1.453

When I do the same to your test (slightly modified; see enclosed) I
get:

  MSVC-6.0

    using iterator lib: ----
    using iterator lib: 8.812
    using iterator lib: 8.797

    using operator lib: -----
    using operator lib: 5.688
    using operator lib: 5.703

  GCC-3.4.4

    using operator lib: -----
    using operator lib: 4.844
    using operator lib: 4.859

    using iterator lib: ----
    using iterator lib: 4.86
    using iterator lib: 4.875

So it looks like the penalty is elsewhere for vc6



-- 
Dave Abrahams
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