<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: How to Calculate PHP Load Times</title>
	<atom:link href="http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html</link>
	<description>Knowledge to help you build good websites</description>
	<pubDate>Fri, 12 Mar 2010 19:10:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Remi</title>
		<link>http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html/comment-page-1#comment-385</link>
		<dc:creator>Remi</dc:creator>
		<pubDate>Fri, 03 Apr 2009 16:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html#comment-385</guid>
		<description>Even though I see the benefits of this method, as it is so simple, this kind of benchmarking is unlikely to help you find the true bottlenecks in your application. It merely measure the speed of every page and require a lot more effort to pinpoint the slow code. Also, focusing on decreasing the speed of a page does not mean it will be able to scale properly to a large number of users, so it is best to focus on scalability rather than pure speed.

I would suggest to use a tool like XDebug (http://www.xdebug.org/) that will profile your code from within PHP (without cluttering your code) and outputs a file with a tremendous amount of details. You can find the bottlenecks of your application within minutes.</description>
		<content:encoded><![CDATA[<p>Even though I see the benefits of this method, as it is so simple, this kind of benchmarking is unlikely to help you find the true bottlenecks in your application. It merely measure the speed of every page and require a lot more effort to pinpoint the slow code. Also, focusing on decreasing the speed of a page does not mean it will be able to scale properly to a large number of users, so it is best to focus on scalability rather than pure speed.</p>
<p>I would suggest to use a tool like XDebug (http://www.xdebug.org/) that will profile your code from within PHP (without cluttering your code) and outputs a file with a tremendous amount of details. You can find the bottlenecks of your application within minutes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Ashwell</title>
		<link>http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html/comment-page-1#comment-280</link>
		<dc:creator>Stefan Ashwell</dc:creator>
		<pubDate>Mon, 01 Sep 2008 11:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html#comment-280</guid>
		<description>Thanks for those functions Adam - will come in handy</description>
		<content:encoded><![CDATA[<p>Thanks for those functions Adam - will come in handy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnson</title>
		<link>http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html/comment-page-1#comment-240</link>
		<dc:creator>Johnson</dc:creator>
		<pubDate>Wed, 14 May 2008 00:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html#comment-240</guid>
		<description>Nice code snip!</description>
		<content:encoded><![CDATA[<p>Nice code snip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html/comment-page-1#comment-229</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Wed, 23 Apr 2008 23:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html#comment-229</guid>
		<description>I've re-factored this so it's much smaller:

top of page:

$load_start = array_sum(explode(" ", microtime()));

bottom of page:

$load_end = array_sum(explode(" ", microtime()));
echo "Page generated in ".number_format($load_end - $load_start, 5)." seconds";

:)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve re-factored this so it&#8217;s much smaller:</p>
<p>top of page:</p>
<p>$load_start = array_sum(explode(&#8221; &#8220;, microtime()));</p>
<p>bottom of page:</p>
<p>$load_end = array_sum(explode(&#8221; &#8220;, microtime()));<br />
echo &#8220;Page generated in &#8220;.number_format($load_end - $load_start, 5).&#8221; seconds&#8221;;</p>
<p> <img src='http://www.metatitan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark @ TheLocoMono</title>
		<link>http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html/comment-page-1#comment-207</link>
		<dc:creator>Mark @ TheLocoMono</dc:creator>
		<pubDate>Sat, 26 Jan 2008 19:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html#comment-207</guid>
		<description>This is terrific.  I am using a shared hosting plan and a few weeks ago, my CPU was overloading like crazy so I had to disable some plugins to settle things back to normal.  

Can I do this with exsisting plugins to see which one is causing overload issues?</description>
		<content:encoded><![CDATA[<p>This is terrific.  I am using a shared hosting plan and a few weeks ago, my CPU was overloading like crazy so I had to disable some plugins to settle things back to normal.  </p>
<p>Can I do this with exsisting plugins to see which one is causing overload issues?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html/comment-page-1#comment-203</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Fri, 04 Jan 2008 20:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.metatitan.com/php/21/how-to-calculate-php-load-times.html#comment-203</guid>
		<description>If you click the link in my name, that is the timer function I always use to calculate. Makes it really nice and easy!</description>
		<content:encoded><![CDATA[<p>If you click the link in my name, that is the timer function I always use to calculate. Makes it really nice and easy!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
