<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DeanQ's Blog</title>
	<atom:link href="http://deanq.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://deanq.com/blog</link>
	<description>Another Web Developer who doesn't publish his ideas... until now</description>
	<lastBuildDate>Sun, 26 Oct 2008 08:58:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Benchmarking CakePHP on MAMP against Zend Optimizer, eAccelerator, and XCache</title>
		<link>http://deanq.com/blog/archives/3</link>
		<comments>http://deanq.com/blog/archives/3#comments</comments>
		<pubDate>Sun, 26 Oct 2008 07:23:22 +0000</pubDate>
		<dc:creator>dean</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[eaccelerator]]></category>
		<category><![CDATA[jmeter]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xcache]]></category>
		<category><![CDATA[zend optimizer]]></category>

		<guid isPermaLink="false">http://deanq.com/blog/?p=3</guid>
		<description><![CDATA[Environment:

Macbook Pro, Intel Core 2 Duo 2.33 GHz, 2GB RAM, 120 GB FUJITSU MHW2120BH
Prebuilt MAMP installation (Apache/2.0.59 (Unix) PHP/5.2.1 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7l)
Background Applications running during tests: Safari, Firefox, TextMate, JMeter, MySQL Administrator, iTunes, Adium, Terminal&#8230; I had 25% RAM available!

Test Mule:

CakePHP 1.2.0.7692 RC3 Framework
Unfinished project&#8217;s controller that pulls two random user id&#8217;s, and adds them [...]]]></description>
			<content:encoded><![CDATA[<h3>Environment:</h3>
<ul>
<li>Macbook Pro, Intel Core 2 Duo 2.33 GHz, 2GB RAM, 120 GB FUJITSU MHW2120BH</li>
<li>Prebuilt MAMP installation (Apache/2.0.59 (Unix) PHP/5.2.1 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7l)</li>
<li>Background Applications running during tests: Safari, Firefox, TextMate, JMeter, MySQL Administrator, iTunes, Adium, Terminal&#8230; I had 25% RAM available!</li>
</ul>
<h3>Test Mule:</h3>
<ul>
<li>CakePHP 1.2.0.7692 RC3 Framework</li>
<li>Unfinished project&#8217;s controller that pulls two random user id&#8217;s, and adds them as friends.</li>
<li>I decided to do the test without writing to the database, since it created too much inconsistency (depending on how well my local MySQL was responding)</li>
<li>All methods involved are read-only.</li>
<li>There&#8217;s a few checks in between like user1 and user2 cannot be the same, not friends yet, etc.</li>
<li>No View caching involved.</li>
</ul>
<h3>Benchmarking Tools:</h3>
<ul>
<li>Test Mule (see above)</li>
<li>Jakarta JMeter (yes, running on the same system as the web server). JMeter will visit the site using 5 threads (concurrent users) and 100 loop counts; a total of 500 hits each run.</li>
</ul>
<p><span id="more-3"></span></p>
<h3>Benchmarking Cases:</h3>
<ul>
<li>Baseline (no optimizers and no opcaching)</li>
<li>Zend Optimizer v3.2.6 only</li>
<li>Zend Optimizer + eAccelerator</li>
<li>Zend Optimizer + XCache</li>
<li>eAccelerator v0.9.5 only</li>
<li>XCache v1.2.0 only</li>
</ul>
<h3>Now to the nitty-gritty&#8230;</h3>
<h2>Baseline</h2>
<h4>Average 383ms per request at 12.7 requests/sec. See <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/baseline_graph.png">graph</a> &amp; <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/baseline_summary.png">summary</a></h4>
<h2>Zend Optimizer v3.2.6 only</h2>
<h4>Average 443ms per request at 11.1 requests/sec. See <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/zend_graph.png">graph</a> &amp; <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/zend_summary.png">summary</a></h4>
<h2>Zend Optimizer + eAccelerator</h2>
<h4>Average 154ms per request at 30.4 requests/sec. See <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/zend-eaccelerator_graph.png">graph</a> &amp; <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/zend-eaccelerator_summary.png">summary</a></h4>
<h2>Zend Optimizer + XCache</h2>
<h4>Average 149ms per request at 32.5 requests/sec. See <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/zend-xcache_graph.png">graph</a> &amp; <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/zend-xcache_summary.png">summary</a></h4>
<h2>eAccelerator v0.9.5 only</h2>
<h4>Average 138ms per request at 35.9 requests/sec. See <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/eaccelerator-config3_graph.png">graph</a> &amp; <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/eaccelerator-config3_summary.png">summary</a></h4>
<h2>XCache v1.2.0 only</h2>
<h4>Average 133ms per request at 36.5 requests/sec. See <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/xcache_graph.png">graph</a> &amp; <a rel="lightbox[1]" href="http://deanq.com/blog/wp-content/uploads/2008/10/xcache_summary.png">summary</a></h4>
<h3>Summary</h3>
<p>To be fair, I ran about 10 runs each before I finally took a screenshot. This allows the web server and application to warmup from a restart. I also monitored the graphs and only took the run that had the most consistency. Some runs would have weird hiccups in between, and that was unacceptable for me.</p>
<p>I have been running a Zend Optimizer + eAccelerator combo for awhile now. Mostly due to ignorance and reading other blogs and articles out there. Now that I have an idea of what I&#8217;m dealing with, I&#8217;m turning off Zend Optimizer, eAccelerator and will be running on XCache alone. I&#8217;ll run these same tests against one of our Web Servers at work. We&#8217;ll see what happens.</p>
]]></content:encoded>
			<wfw:commentRss>http://deanq.com/blog/archives/3/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

