Re: PHP4 Speed Problems
| From: | Michael Kimsal | Date: | Thu, 03 Aug 2000 16:23:58 +0000 |
| Subject: | Re: PHP4 Speed Problems | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9970@lists.php.net to get a copy of this message | ||
What kind of scripts are you running that only take 7 milliseconds
to run? Are you actually doing anything? ;)
Any scripts I have that do any appreciable amount of work (database
work, file manipulation, etc.) take >40 milliseconds. Just loading
a class to do the milliseconds timing takes a bit of time...
How are you timing things to the millisecond?
Do you have a sample script that you could send that is only
7 ms?
Dave VanHorn wrote:
> This brings up an interesting question though, what is a practical method
> to monitor execution times?
>
> I've tried it on some of my scripts, but the largest one I have takes only
> seven milliseconds to execute, and that number seems pretty constant, even
> when I vary what's going on appreciably.
>
> I think that at least in my case, there's some static overhead that's
> dominating the picture.
>
> I thought of having scripts record their execution times to the DB, if T >
> Tstored, then Tstored = T sort of thing.
--
==========================
Michael Kimsal
http://www.tapinternet.com
734-480-9961