-
Performance Tests?
As I've been trying to get a better handle on C++ lately, I was wondering how it would be possible to conduct performance tests on different segments of code. For example, func1() versus func2() in clock cycle time, etc.
Are there any tools that would make all that easy within the IDE? Thx for the help.
edit: btw, i know that performance depends on compiler optimizations and may not be consistent.
-
Well you can write your own timing functions and then just compare the results. Otherwise you can get a profiler which will give you details about the running time of your code ( I.E. - How much time spent in each function, etc. ). I like profilers they are excellent, especially for finding bottle necks.
-
yeah, that's close to what i'm looking for, know where i can get exec. profilers?
-
I know VC++ ( Professional Edition, not sure about others ) comes with a decent profiler. I've always used this one so I'm not sure where you can find some good free ones. Probably just search around and something will come up.
-
oh, well that's what i happen to have too (vstudio.net c++), where is this profiler though?
-
Enable the profiling in your project settings, then go to Build->Profile and you can select the options there.