Boost logo

Boost Users :

Subject: Re: [Boost-users] Why use 'functional composition' with boost::bind
From: WB (w.brenig_at_[hidden])
Date: 2010-08-04 08:27:25


Hi,

> > I ran your test.
> > Case 3 runs in 0.65s, case 1 and 2 in 0.82s.
> > That's with GCC 4.4.3.
>
> That is really strange? For me
> Case 3 runs in ~1.8...1.9s, case 1 and 2 in 0.81...0.84s
> (I compile with gcc -O3 -Wall -lstdc++, nothing special)
> This leaves me even more nervous.

just one more followup on this. I tried Intels icc on the same thing.

Then its:
~0.18s for case 0
~0.57s for case 1 and 2
~0.99s for case 3
on my machine.

I.e., things are factor of ~2 slower when using boost::bind not only for gcc.
(And it is well known that icc can make things run much faster than gcc)
Now I'm really curious what your compiler is ?

wb


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net