On Wednesday 04 April 2001 04:43, you wrote:
> Im trying to optimize some php/mysql code. Does anyone know a way to
> measure the amount cpu time a php script consumes?
Use "ab" (ApacheBench - comes with apache) if possible.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The u
On 3 Apr 2001 19:29:14 -0700, Brian Hardwick <[EMAIL PROTECTED]>
wrote:
>Im trying to optimize some php/mysql code. Does anyone know a way to
>measure the amount cpu time a php script consumes?
Check out the POSIX functions - in particular the posix_times() function, which
not only shows CPU tim
The closest I know of is using microtime at the start and end of a piece of
code to see how long it took.
You'll want to run the script through a loop, usually around 10 times at
least if it's not a big script, and then average together 10 tests.
--
Plutarck
Should be working on something...
.
3 matches
Mail list logo