mclark1129
mclark1129

Reputation: 7592

Comparing performance between two method implementations in .NET

I want to make a change to the way that a particular method in my code has been implemented. Before committing that change to production, I'd like to make sure that my changes have no or minimal impact on the performance of that particular method. Are there any tools available that will allow me to easily performance test individual method implementations in .NET? How else would I be able to achieve this kind of granular performance testing?

Upvotes: 5

Views: 691

Answers (2)

Mitch Wheat
Mitch Wheat

Reputation: 300529

You can use the Visual Studio Profiler (Premium and Ultimate Editions):

There are also commercial tools from RedGate and JetBrains

Also Eqatec (which is free)

Upvotes: 5

Oded
Oded

Reputation: 498932

Use a profiler - there is one built into Visual Studio.

You can also get commercial ones - DotTrace and Ants Performance Profiler have good reputation.

You need to measure before the changes to get a baseline, then after to see what effect your changed have had.

Upvotes: 0

Related Questions