Performance

  • Thread starter Thread starter SK
  • Start date Start date
SK said:
How to test the performace of executing a method.Help...

Call it "several" times (where "several" is enough to make it take a
significant amount of time) and measure the time it's taken to execute.
Obviously this is somewhat easier for idempotent methods than ones
which alter state and need to be "reset".
 
Suppose i called the method 1000 times,then say...how much
time shud it take if it is performing well.
 
Suppose i called the method 1000 times,then say...how much
time shud it take if it is performing well.

With a normal method you than mostly do not even see it in ticks (1/1000
second)

However mostly it is just try and see what is in your method, when you are
doing datahandling or much screen refreshing, it takes some time. Mostly is
even complex text handling very fast when you use the right
functions/methods.

Cor
 
Suppose i called the method 1000 times,then say...how much
time shud it take if it is performing well.

That depends - is it rendering a complex 3D model on a large area, or
is it checking whether you passed it true or false?

Without knowing what the method is meant to achieve, there's no way on
earth of knowing what constitutes "performing well".
 
Back
Top