QuantLib in MS VC++8 10 times slower than in Mingw/GCC3.4.2 ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

QuantLib in MS VC++8 10 times slower than in Mingw/GCC3.4.2 ?

jerryji
I wonder whether anyone else observes similar magnitude order of speed
difference between MS VC++ and Mingw/GCC output codes --

(Sat Mar 04 07:56:33) $ time EuropeanOption-mgw.exe
Using 0.3.11
...
real    0m1.093s
user    0m0.030s
sys     0m0.015s

(Sat Mar 04 07:56:40) $ time EuropeanOption-vc80-mt-gd.exe
Using 0.3.11-debug
...
real    0m10.207s
user    0m0.015s
sys     0m0.016s

And has the explanation/solution. My versions are QuantLib0.9.7, MS
VC++8 and Mingw/GCC3.4.2 in Windows XP SP2. BTW, I've already rebuilt
all QuantLib VC projects after changing the preferences from Debug to
Release but don't understand why it still shows "Using 0.3.11-debug"...

Many thanks in advance.

--
Cheers,
Jerry


Reply | Threaded
Open this post in threaded view
|

Re: QuantLib in MS VC++8 10 times slower than in Mingw/GCC3.4.2 ?

Ferdinando M. Ametrano-3
On 3/4/06, Jerry Ji <[hidden email]> wrote:

> I wonder whether anyone else observes similar magnitude order of speed
> difference between MS VC++ and Mingw/GCC output codes --
>
> (Sat Mar 04 07:56:33) $ time EuropeanOption-mgw.exe
> Using 0.3.11
> ...
> real    0m1.093s
> user    0m0.030s
> sys     0m0.015s
>
> (Sat Mar 04 07:56:40) $ time EuropeanOption-vc80-mt-gd.exe
> Using 0.3.11-debug

you're using the debug version. Non debug version should be
EuropeanOption-vc80-mt.exe
or EuropeanOption-vc80-mt-s.exe

> I've already rebuilt
> all QuantLib VC projects after changing the preferences from Debug to
> Release but don't understand why it still shows "Using 0.3.11-debug"...

even if you've rebuilt all the projects in Release configuration (are
you really sure?) you are still using the debug version

ciao -- Nando