Reputation: 7592
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
Reputation: 300529
You can use the Visual Studio Profiler (Premium and Ultimate Editions):
Beginners Guide to Performance Profiling (Visual Studio)
How to: Compare Profiler Data Files (You can compare the results of two different profiler data files (.vsp or .vsps) by creating a comparison ("Diff") report or view. The comparison shows the differences, performance regressions, and improvements that occurred from one profiling session to the other.)
There are also commercial tools from RedGate and JetBrains
Also Eqatec (which is free)
Upvotes: 5
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