Perfomrmance Measurement in asp.net
-
Hi friends, I am working on a very large application in my company. It has very good framework implemented by the architects and designers. In that framework I have needed to modify a class in one .cs file in one class library. I added 3 functions in that class. I am using existing typed datasets in those functions. From those datasets I have to filter data and return the resultant datacollection from the functions. I have 2 approach to accomplish this. 1. To use Select() function on the table in the dataset and pass query to the function and get the filtered data. 2. To loop through all the rows in the table in the dataset and create collection of macthing rows and then return that collection from the function. I need to know which approach is better and also is there any process which can be employed to check which approach from above two takes more time. I have tried by putting datetime variables around the function calling and checking the difference between them but they show the same time with no difference at all. So please can anyone guid me which is the better approach and how to measure the function performance. Thank you all in advance.
Thanks and Regards, Chetan Ranpariya
-
Hi friends, I am working on a very large application in my company. It has very good framework implemented by the architects and designers. In that framework I have needed to modify a class in one .cs file in one class library. I added 3 functions in that class. I am using existing typed datasets in those functions. From those datasets I have to filter data and return the resultant datacollection from the functions. I have 2 approach to accomplish this. 1. To use Select() function on the table in the dataset and pass query to the function and get the filtered data. 2. To loop through all the rows in the table in the dataset and create collection of macthing rows and then return that collection from the function. I need to know which approach is better and also is there any process which can be employed to check which approach from above two takes more time. I have tried by putting datetime variables around the function calling and checking the difference between them but they show the same time with no difference at all. So please can anyone guid me which is the better approach and how to measure the function performance. Thank you all in advance.
Thanks and Regards, Chetan Ranpariya
I think Select function is preferable than second option . there are many ways to check performance of the applicatin Check for Parformance Counter class in the System.Diagnostics namespace
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
I think Select function is preferable than second option . there are many ways to check performance of the applicatin Check for Parformance Counter class in the System.Diagnostics namespace
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
Hi Sandeep, Thank you very much for the reply and help.
Thanks and Regards, Chetan Ranpariya