http://www.perlmonks.org?node_id=1010530


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

Replies are listed 'Best First'.
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.
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