Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Estimating computation time perl scripts

by reaper9187 (Scribe)
on Dec 27, 2012 at 13:57 UTC ( #1010530=note: print w/ replies, xml ) Need Help??


in reply to Estimating computation time perl scripts

Thank you everyone for the quick comments,... I'm not looking to for a very precise measure of the computation time .. Jus a type of guess that can give the user a fair idea abt it .. As for the code, its really long, so i'll jus explain the process flow

The program has a lot of subroutines and performs comprehensive checks on multiple files simultaneously ( about 6 files in all .. total size : approx 9 MB .... ) I knw how to program the progress bar., its jus the count (total time )thats a bit of a worry ... Help appreciated..!!


Comment on Re: Estimating computation time perl scripts
Re^2: Estimating computation time perl scripts
by Anonymous Monk on Dec 27, 2012 at 14:07 UTC
    get info about system (like disk speed, disk buffer size ), multiply by size of files, then guess
Re^2: Estimating computation time perl scripts
by space_monk (Chaplain) on Dec 27, 2012 at 14:22 UTC

    Most checks on 9MB of files should be over fast enough not to need a progress bar nowadays.....

    A Monk aims to give answers to those who have none, and to learn from those who know more.
      Wish it was so quick .. The entire process takes about a 2-3 mins ... Hence the request.... Thanks again .:)

        No problem - however, your question to PerlMonks perhaps ought to have asked how to optimise whatever you're doing to the files....I'd be rather suspicious if anything took 2-3 mins on such a small amount of data nowadays..

        A Monk aims to give answers to those who have none, and to learn from those who know more.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010530]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2014-07-25 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (173 votes), past polls