4 Aug
2010
4 Aug
'10
12:27 p.m.
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