Perfomance test

Discussion in 'ASP .Net' started by James T., Feb 26, 2006.

  1. James T.

    James T. Guest

    Hello!

    Let's say I have 2 functions, both return data from the database. Now I
    would like to compare perfomance of these two functions. I would like to
    know how long it takes to execute these functions.

    How can I do that?

    Thank you!
    James
    James T., Feb 26, 2006
    #1
    1. Advertising

  2. James,

    Use System.Timers.Timer.

    If the execution time for a single call is too short, make a loop for each
    function to run, say, 10000 times.

    Still the result won't be 100% reliable since in real conditions database
    caching will differ.

    Eliyahu

    "James T." <> wrote in message
    news:e%...
    > Hello!
    >
    > Let's say I have 2 functions, both return data from the database. Now I
    > would like to compare perfomance of these two functions. I would like to
    > know how long it takes to execute these functions.
    >
    > How can I do that?
    >
    > Thank you!
    > James
    >
    Eliyahu Goldin, Feb 26, 2006
    #2
    1. Advertising

  3. James T.

    James T. Guest

    Thank you Eliyahu!

    James


    "Eliyahu Goldin" <> wrote in message
    news:%...
    > James,
    >
    > Use System.Timers.Timer.
    >
    > If the execution time for a single call is too short, make a loop for each
    > function to run, say, 10000 times.
    >
    > Still the result won't be 100% reliable since in real conditions database
    > caching will differ.
    >
    > Eliyahu
    >
    > "James T." <> wrote in message
    > news:e%...
    >> Hello!
    >>
    >> Let's say I have 2 functions, both return data from the database. Now I
    >> would like to compare perfomance of these two functions. I would like to
    >> know how long it takes to execute these functions.
    >>
    >> How can I do that?
    >>
    >> Thank you!
    >> James
    >>

    >
    >
    James T., Feb 26, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gnanaprakash Rathinam

    CreateInstranceAndUnwrap slow perfomance

    Gnanaprakash Rathinam, Dec 29, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    2,099
    David Levine
    Dec 30, 2004
  2. Fredrik Melin

    Server perfomance

    Fredrik Melin, Oct 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    404
    Paul Glavich [MVP - ASP.NET]
    Oct 27, 2004
  3. Scott Reynolds

    data perfomance?

    Scott Reynolds, Mar 1, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    411
    Karl Seguin
    Mar 1, 2005
  4. George

    Huge HTML output perfomance

    George, Mar 28, 2005, in forum: ASP .Net
    Replies:
    10
    Views:
    659
    Robbe Morris [C# MVP]
    Mar 29, 2005
  5. iksrazal
    Replies:
    2
    Views:
    346
    enrique
    Apr 27, 2005
Loading...

Share This Page