How to compare performance two kinds of coding or controls?. i really want to compare 2 kind of coding :
first kind of coding : 2.065 ms
second kind of coding : 3.065 ms
For example how to compare gridview filling sqldatasoursecontrol or linq method ?
The System.Diagnostics.Stopwatch class is a high resolution timer useful for capturing performance metrics. Just start and stop it before and after what you are trying to get performance metrics from.