Tech Off Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Difference in performance when running with F5 vs. Ctrl+F5

Back to Forum: Tech Off
  • User profile image
    wonderwalrus

    Could you guys help me with this problem:

    My c# app performs almost 3x as high when I run it in Debug mode (F5 in Visual Studio 2003) as when I run it without debugging (Ctrl+F5).  I would think that running in Debug mode would decrease the performance, but in this case it is actually faster.  In any case, the difference in performance numbers is appalling to me.

    The app is a server stress tool that spawns multiple threads to simulate multiple users.

    In Debug mode, it stresses the server to 100%. Running without debugging, the server CPU counter can only get to about 35% at the highest.

    Any help would be greatly appreciated!

  • User profile image
    Blkbam

    wonderwalrus wrote:
    In Debug mode, it stresses the server to 100%. Running without debugging, the server CPU counter can only get to about 35% at the highest.


    Only because someone has to ask.... Are you debugging on the server?

  • User profile image
    wonderwalrus

    No, I'm running the stress tool from a client machine.  I just monitor the server performance with perfmon.

    I've narrowed it down to an authentication issue.  For some reason, outside of Debug mode, it takes a long time to authenticate.  I'm going to try using Anonymous Access and see if it makes any difference.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.