Re: How to profile a VC++ program?
- From: fastgo@xxxxxxxxx
- Date: 3 May 2006 08:56:50 -0700
Carl,
I will look at the multi-thread option, and change it and measure it.
The program is not multi-threaded program at present.
Both methods identified as hotspots are not virtual.
I tried other optimization options as well, like O1, Ox, or the debug
version. The speed are pretty much the same, maybe 10% fluctuation at
most.
These results are shown by a stress testing. Those methods got hit like
100 millions of time, and the whole testing runs about 170 seconds for
the program built with VC.
The program is in C++. The program is designed for best performance.
Mostly home made classes, with some STL. But I only use STL classes at
the place where the CPU usuage is not heavy. Almost no system calls.
Very light IO, I used the standard istream and ostream. It is CPU
heavy, almost no try/catch blocks. The only external library I used is
an external logging library, but I turned off the logging when doing
the testing. The time I measured is about the CPU usage time, not the
actual execution duration time, even though the cpu time and actual
duration time are close to each other in the testing I performed.
The gcc version of the program do not link with multi thread.
The total time of the execution for each build options are
the program execution time when built with VC = 1.7 * when built with
gcc without optimization
and gcc without optimization = 1.5 gcc with optimization.
If the inline methods takes longer time, then it would explain the
speed differences. But then the question why would it be slower. But
since I am measuring the micro seconds here, so I would think it is not
that bad.
Thanks a lot for the interest any way,
John
.
- References:
- How to profile a VC++ program?
- From: fastgo
- Re: How to profile a VC++ program?
- From: Carl Daniel [VC++ MVP]
- Re: How to profile a VC++ program?
- From: fastgo
- Re: How to profile a VC++ program?
- From: Carl Daniel [VC++ MVP]
- Re: How to profile a VC++ program?
- From: fastgo
- Re: How to profile a VC++ program?
- From: Carl Daniel [VC++ MVP]
- How to profile a VC++ program?
- Prev by Date: Re: How to assign a non-const object to const reference
- Next by Date: Re: How to assign a non-const object to const reference
- Previous by thread: Re: How to profile a VC++ program?
- Next by thread: Re: How to profile a VC++ program?
- Index(es):
Relevant Pages
|