Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I just came across a situation in my organization which is as follows.

I have a C# WinForms project that measure some performance readings of our project APIs. Then, I have a machine on which I have to take performance measurements.

I have 2 ways to perform the task:
1) On a machine where Visual Studio is installed.
2) On a machine where Visual Studio is not installed.

I have already compiled the project, and so, I will be running the program from EXE file in bin\debug folder.

In my thinking, the performance measurements will not differ in both of the above environments as long as Visual Studio instance (devenv.exe) is not running in the machine.

Please throw some light on this scenario.

Do you think that even when Visual Studio instance (devenv.exe) is not running in the system, the winforms program will report slower performance readings ?

Note: I prefer having VS installed because it helps debug some code errors some times.

I am really looking for some URGENT help.
Posted
Comments
BillWoodruff 24-Sep-14 3:18am    
Are you compiling to 'Release mode ?

You should only use Visual Studio to develop and test your application. Once you are satisfied that it is working correctly, you should create a Release version of the code and use that to run your performance tests. You can do this on any machine whether Visual Studio is installed or not, as long as the correct version of the .NET framework has been installed.
 
Share this answer
 
Hi Vivek,

What I understood is as below scenario, correct me If I am wrong

you want to measure performance reading of your project API through your C# Winforms application,

now you are in dilemma whether to test it using Visual Studio Debugging or run it directly from Debug folder,

Solution -

while you run any application from Visual Studio, it runs into Debug mode, to make debugging possible the application also contains necessary resources for debugging, which may cause the Winforms application run a bit slower.

instead you can check it directly from Debug Folder and when you want to run in Debug mode, run it from the Visual Studio.

Regards,
Ravi
 
Share this answer
 
I am writing this more than an year after. Apologies for that.

I developed my project successfully as I wrote before.
As it turned out, I needed to run the project without running the Visual Studio. Having it installed on the machine had no effect on the performance.

Thanks for the replies.
 
Share this answer
 
Comments
CHill60 5-Oct-15 10:09am    
Which is more or less what you were told in Solution 1 and Solution 2 last year

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900