<?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>Beyond Coding &#187; Rails</title>
	<atom:link href="http://www.beyondcoding.com/category/ruby/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beyondcoding.com</link>
	<description>Follow us on Twitter: @fredwu and @scotti3g</description>
	<lastBuildDate>Tue, 28 Jun 2011 11:33:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ruby on Rails, Passenger (ModRails) vs CodeIgniter and Kohana</title>
		<link>http://www.beyondcoding.com/2008/05/26/ruby-on-rails-passenger-modrails-vs-codeigniter-and-kohana/</link>
		<comments>http://www.beyondcoding.com/2008/05/26/ruby-on-rails-passenger-modrails-vs-codeigniter-and-kohana/#comments</comments>
		<pubDate>Sun, 25 May 2008 14:27:45 +0000</pubDate>
		<dc:creator>Fred Wu</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Kohana]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[ModRails]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://thislab.com/?p=38</guid>
		<description><![CDATA[Disclaimer: This is a very simple, &#8216;Hello World&#8217; benchmark which has no impact to any real world applications. A more thorough benchmark test (by building two real world applications) is planned. :) Disclaimer 2:I apologise for posting such a useless benchmark (I certainly didn&#8217;t expect it to hit the DZone front page), but I think [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> This is a very simple, &#8216;Hello World&#8217; benchmark which has no impact to any real world applications. A more thorough benchmark test (by building two real world applications) is planned. :)</em></p>
<p><em><strong>Disclaimer 2:</strong>I apologise for posting such a useless benchmark (I certainly didn&#8217;t expect it to hit the DZone front page), but I think most of you missed the point. I merely posted this as a result of surprise (to me anyway). At a later stage I will conduct a much more meaningful comparison between some of the frameworks. Until then, please ignore this post. :)</em></p>
<p>Last few days I have been playing with Ruby and Rails, again.</p>
<p>Today, when someone was asking on a forum about the efficiency of web frameworks, I thought I&#8217;d give the few frameworks I work with some more benchmark testing.</p>
<p>So I went ahead and benchmarked CodeIgniter, Kohana and Rails, using a simple &#8216;Hello World!&#8217; page. Now before I post any benchmark results, you should know that I have previously done <a href="http://thislab.com/2008/03/25/kohana-vs-codeigniter-speed-and-memory-usage-performance-benchmark/">a benchmark test on CodeIgniter, Kohana and CakePHP</a>. CodeIgniter and Kohana shared similar results.</p>
<p><span id="more-48"></span></p>
<p>This time though, the benchmark results surprised me. Here they are, in a nutshell:</p>
<p>CodeIgniter: 451.53 [#/sec]<br />
Kohana: 373.05 [#/sec]</p>
<p>Rails: 521.39 [#/sec]<br />
CodeIgniter: 127.23 [#/sec]</p>
<p>Results are presented in requests per seconds, so the higher the better. Now, please let me explain why I have included CodeIgniter twice.</p>
<p>The first two benchmarks were done on MAMP which has Apache 2.0.59 and PHP 5.2.5 with Zend Optimizer and XCache enabled.</p>
<p>The last two benchmarks were done on OS X Leopard&#8217;s default Apache 2.2.8 and PHP 5.2.5 without Zend Optimizer or XCache. Hence the worse result for CodeIgniter.</p>
<p>For the Rails implementation, the benchmark was done on <a href="http://www.modrails.com/">Passenger (aka ModRails)</a>, it is supposedly a more efficient implementation than using Mongrel.</p>
<p>It is very interesting to see that Rails performed faster than two of the most efficient PHP frameworks.</p>
<p>Framework versions used in the benchmark: CodeIgniter 1.6.2, Kohana SVN, Rails 2.0.2.</p>

	Tags: <a href="http://www.beyondcoding.com/tag/apache/" title="Apache" rel="tag">Apache</a>, <a href="http://www.beyondcoding.com/tag/benchmark/" title="benchmark" rel="tag">benchmark</a>, <a href="http://www.beyondcoding.com/tag/codeigniter/" title="CodeIgniter" rel="tag">CodeIgniter</a>, <a href="http://www.beyondcoding.com/tag/framework/" title="framework" rel="tag">framework</a>, <a href="http://www.beyondcoding.com/tag/kohana-php/" title="Kohana" rel="tag">Kohana</a>, <a href="http://www.beyondcoding.com/tag/modrails/" title="ModRails" rel="tag">ModRails</a>, <a href="http://www.beyondcoding.com/tag/passenger/" title="Passenger" rel="tag">Passenger</a>, <a href="http://www.beyondcoding.com/tag/php/" title="PHP" rel="tag">PHP</a>, <a href="http://www.beyondcoding.com/tag/rails/" title="Rails" rel="tag">Rails</a>, <a href="http://www.beyondcoding.com/tag/ruby/" title="Ruby" rel="tag">Ruby</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.beyondcoding.com/2008/02/21/using-zend-framework-with-codeigniter/" title="Using Zend Framework with CodeIgniter (February 21, 2008)">Using Zend Framework with CodeIgniter</a> (48)</li>
	<li><a href="http://www.beyondcoding.com/2008/02/23/notes-on-choosing-a-php-framework-a-quick-comparison-of-codeigniter-and-kohana/" title="Notes on Choosing a PHP Framework: A Quick Comparison of CodeIgniter and Kohana (February 23, 2008)">Notes on Choosing a PHP Framework: A Quick Comparison of CodeIgniter and Kohana</a> (52)</li>
	<li><a href="http://www.beyondcoding.com/2008/03/25/kohana-vs-codeigniter-speed-and-memory-usage-performance-benchmark/" title="Kohana vs CodeIgniter: Speed and Memory Usage Performance Benchmark (March 25, 2008)">Kohana vs CodeIgniter: Speed and Memory Usage Performance Benchmark</a> (16)</li>
	<li><a href="http://www.beyondcoding.com/2008/12/18/comparison-ruby-vs-php-the-pros/" title="Comparison: Ruby vs PHP, the Pros (December 18, 2008)">Comparison: Ruby vs PHP, the Pros</a> (5)</li>
	<li><a href="http://www.beyondcoding.com/2008/02/25/benchmark-litespeed-vs-apache-php-and-plain-html/" title="Benchmark: LiteSpeed vs Apache (PHP and Plain HTML) (February 25, 2008)">Benchmark: LiteSpeed vs Apache (PHP and Plain HTML)</a> (14)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.beyondcoding.com/2008/05/26/ruby-on-rails-passenger-modrails-vs-codeigniter-and-kohana/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

