Re: Reducing load for LAMP app?



On Sun, 06 Jan 2008 10:19:53 -0500, Jerry Stuckle
<jstucklex@xxxxxxxxxxxxx> wrote:
Well, to start, you don't need any tools. microtime() can help you
locate bottlenecks.

OK, I'll tell him to put some calls to Microtime() in the PHP pages,
and see what we get.

$start_time = microtime();
// run script code here
$end_time = microtime();
$total_time = $end_time - $start_time;

Thanks.
.



Relevant Pages

  • RE: [PHP] Representing microtime() values
    ... How exactly does PHP handle these values internally? ... integer part of the microtime result is a quite big number... ... I even tried a workaround like ... But it does seem quite strange to me that anything with more than two float points would loss precision so badly it isn't worth letting people to print out. ...
    (php.general)
  • RE: [PHP] Representing microtime() values
    ... How exactly does PHP handle these values internally? ... Thanks Tedd, but that's not really what I asked for. ... script is that it doesn't use the TRUE flag (unlike the script given on ... integer part of the microtime result is a quite big number... ...
    (php.general)
  • Re: Help - PHP redirect during certain hours
    ... look at functions dateand microtime() ... Super Nashwan wrote: ... > I am new to PHP and wonder if anyone can help. ... > I would like a PHP script which redirects the user to different ...
    (alt.php)
  • Re: Banner Rotator
    ... Here is the PHP code. ... srand microtime()*1000000); ... randomally selected an html banner. ...
    (comp.lang.php)
  • Re: globals ?
    ... $start1 = microtime(); ... $end1 = microtime; ...
    (comp.lang.php)