Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/articles/php-tutorials/)
-   -   Gauging ur PHP Performance (http://www.go4expert.com/articles/gauging-ur-php-performance-t2264/)

rohitdsouza 16Dec2006 15:16

Gauging ur PHP Performance
 
The below is a code to gauge ur php performance

Code: PHP

<?php
function micro_time_val($mytime)
{
    $gettime=explode(" ",$mytime);
    $msec=(double)$gettime[0];
    $sec=(double)$gettime[1];
    return ($sec + $msec);
}
$starttime=micro_time_val(time());

//do some tasks

$endtime=micro_time_val(time());

$difftime=$endtime-$starttime;

print "Your Script Response time is:$difftime";

?>


pradeep 16Dec2006 17:18

Also this http://www.go4expert.com/showthread.php?t=273

daworm 19Dec2006 16:35

Re: Gauging ur PHP Performance
 
Gauging performance is also called PROFILING ...

kash 19Dec2006 16:38

what is PHP
 
can anyone outhere tell me what is PHP and what is it used for. ;)

pradeep 20Dec2006 10:32

Re: Gauging ur PHP Performance
 
Kash, PHP (PHP: Hypertext Preprocessor) is a programming language originally designed for producing dynamic Web pages.PHP is used mainly in server-side application software, but can be used from a command line interface or in standalone graphical applications.

raj4encoders 21Dec2006 10:19

Re: Gauging ur PHP Performance
 
That's great! it's also called profiling.Merry Christmas.
raj
encoders

shabbir 21Dec2006 10:36

Re: Gauging ur PHP Performance
 
Confine links to signatures only

Krolik 16Feb2007 15:15

Re: Gauging ur PHP Performance
 
Are there any professional profilers for PHP, as are for Java and C++? It would be nice to have a tool that can easily spot bottlenecks.

pradeep 16Feb2007 15:45

Re: Gauging ur PHP Performance
 
Here is one http://www.nusphere.com/products/php_profiler.htm


All times are GMT +5.5. The time now is 13:45.