testing - best way to measure (and refine) performance with PHP? -


a site working starting little sluggish, , refine it. think problem php, can't sure. how can see how long functions taking perform?

if want test execution time :

<?php     $starttime = microtime(true);       // content test     $endtime = microtime(true);       $elapsed = $endtime - $starttime;     echo "execution time : $elapsed seconds"; ?> 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -