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
Post a Comment