Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Estimating computation time perl scripts

by BrowserUk (Pope)
on Dec 27, 2012 at 13:02 UTC ( #1010523=note: print w/replies, xml ) Need Help??

in reply to Estimating computation time perl scripts

Most every long running program contain repetition in the form of loops, or recursion, or a set of work items to be processed; and the number of repetitions are normally known, or are quickly estimable.

If you time the first repetition and multiply by the known or first estimation of the repetition count, you can approximate the total time and derive a %complete.

As the time taken for each repetition can vary, you can time each successive repetition and adjust the percentage dynamically.

You'll get better/more specific suggestions if you give us more information about the nature of your program.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Estimating computation time perl scripts

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010523]
[oiskuu]: Discipulus, from the edge or from the top?
[Discipulus]: oiskuu from the top aka 0-0 coords
[LanX]: edge or node?
[oiskuu]: from each height difference, there's a fixed number of "moves right" - "moves left". So it's a number of combinations.
[Discipulus]: I already know how much distinct paths exists but to demonstrate the property i want to have them all
[oiskuu]: ie C(n, k); where n is height difference, k is position in the line
[Discipulus]: infact there are 70 distinct path to reach the tale wich holds 70
[Discipulus]: what i want is to compute them

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2018-03-19 11:03 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.