[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Time taken by a script



Ron is rights, but you can get an idea when you do
prepend the time command like: time script
It gives you a few stats.

Regards,

Onno


At 06:19 AM 3/23/00 +0000, Debian Linux User wrote:
>Ron Rademaker wrote:
>
>> I've written a cgi script in perl an I would like to know how long
>> (exactly, 10th of second) it takes to execute the script, how can I do
>> this?
>>
>> Ron
>>
>> --
>> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>Since Perl is an interpreted language, there are no assurances as to how long it will
>take to run your script, because it highly dependent on how Perl "decides" to process
>your instructions. CGI scripts typically are under their own process anyhow, so it
>also depends on when the OS decides to schedule your script for execution. Since
>Linux is not a "Real Time" OS there are no assurances on either front. The point
>being that you can get a pretty good average (down to a tenth of a second) in
>testing, but execution time may widly vary under a heavy system load.
>
>Solution: Average time under a heavy load and feel comfortable with an average.
>
>Justin
>
>
>-- 
>Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>
>


Reply to: