Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Perfomrmance Measurement in asp.net

Perfomrmance Measurement in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabaseperformancetutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chetan Ranpariya
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • C 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

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      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... "

      C 1 Reply Last reply
      0
      • S Sandeep Akhare

        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... "

        C Offline
        C Offline
        Chetan Ranpariya
        wrote on last edited by
        #3

        Hi Sandeep, Thank you very much for the reply and help.

        Thanks and Regards, Chetan Ranpariya

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups