Then use a profiler suited for MSVC There probably is one. You also probably have to pay for it, but I guess you're ready for that if you decided to use MSVC.

Of course you can make pseudo-tests using your code directly. Just use some way to measure time differences (for example using time() or clock()).