<?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"
	>
<channel>
	<title>Comments on: ErlyWeb vs. Ruby on Rails EC2 Performance Showdown</title>
	<atom:link href="http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/feed/" rel="self" type="application/rss+xml" />
	<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/</link>
	<description>Adventures in Open Source Erlang</description>
	<pubDate>Fri, 16 May 2008 04:21:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: motek</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-116013</link>
		<dc:creator>motek</dc:creator>
		<pubDate>Wed, 26 Mar 2008 15:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-116013</guid>
		<description>Try ruby 1.9 (compiled from source not from repository) and rails 2 :)</description>
		<content:encoded><![CDATA[<p>Try ruby 1.9 (compiled from source not from repository) and rails 2 :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zed</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-99644</link>
		<dc:creator>zed</dc:creator>
		<pubDate>Thu, 14 Feb 2008 23:14:45 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-99644</guid>
		<description>and a would like to see ruby 1.9 in comparison
it was released last christmas and ist 5-10 times faster than 1.8</description>
		<content:encoded><![CDATA[<p>and a would like to see ruby 1.9 in comparison<br />
it was released last christmas and ist 5-10 times faster than 1.8</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zed</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-99639</link>
		<dc:creator>zed</dc:creator>
		<pubDate>Thu, 14 Feb 2008 23:03:27 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-99639</guid>
		<description>you could use Thin or at least evented mongrel instead of mongrel to boost the rails app
but rails is known as the slowest Ruby Webframework around so who cares</description>
		<content:encoded><![CDATA[<p>you could use Thin or at least evented mongrel instead of mongrel to boost the rails app<br />
but rails is known as the slowest Ruby Webframework around so who cares</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-73106</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 14 Dec 2007 18:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-73106</guid>
		<description>I've been reading the EC2 doc and I'm clueless as to how one would install a yaws/erlyweb server and more importantly how much would such a server cost to run? Just because the WS was open, does not mean it's running... where is the line drawn?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been reading the EC2 doc and I&#8217;m clueless as to how one would install a yaws/erlyweb server and more importantly how much would such a server cost to run? Just because the WS was open, does not mean it&#8217;s running&#8230; where is the line drawn?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Comet Daily &#187; Blog Archive &#187; Getting started with Comet on Erlang</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-72942</link>
		<dc:creator>Comet Daily &#187; Blog Archive &#187; Getting started with Comet on Erlang</dc:creator>
		<pubDate>Fri, 14 Dec 2007 08:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-72942</guid>
		<description>[...] ErlyWeb, a MVC web framework tailored to yaws and six times faster than RubyOnRails, according to a benchmark done by Yariv Sadan, the author of the framework. If you are considering adapting yaws for Comet, [...]</description>
		<content:encoded><![CDATA[<p>[...] ErlyWeb, a MVC web framework tailored to yaws and six times faster than RubyOnRails, according to a benchmark done by Yariv Sadan, the author of the framework. If you are considering adapting yaws for Comet, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jey</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-72542</link>
		<dc:creator>jey</dc:creator>
		<pubDate>Thu, 13 Dec 2007 09:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-72542</guid>
		<description>mmh.. ok for Rails but... what the hell is ErlyWeb?!</description>
		<content:encoded><![CDATA[<p>mmh.. ok for Rails but&#8230; what the hell is ErlyWeb?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yariv</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-72403</link>
		<dc:creator>Yariv</dc:creator>
		<pubDate>Thu, 13 Dec 2007 01:33:48 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-72403</guid>
		<description>JFred, I don't think it's a big issue that the text is static. I just wanted to make sure that the app does at least some computation before returning. I don't want to waste too much time tweaking this code where there isn't likely to be a big impact on performance.</description>
		<content:encoded><![CDATA[<p>JFred, I don&#8217;t think it&#8217;s a big issue that the text is static. I just wanted to make sure that the app does at least some computation before returning. I don&#8217;t want to waste too much time tweaking this code where there isn&#8217;t likely to be a big impact on performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JFred</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-71959</link>
		<dc:creator>JFred</dc:creator>
		<pubDate>Tue, 11 Dec 2007 17:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-71959</guid>
		<description>Um, with the closing bracket:
].map{&#124;x&#124; "&#60;tr&#62;&#60;td&#62;" + x + "&#60;/td&#62;&#60;/tr&#62;\n"}</description>
		<content:encoded><![CDATA[<p>Um, with the closing bracket:<br />
].map{|x| &#8220;&lt;tr&gt;&lt;td&gt;&#8221; + x + &#8220;&lt;/td&gt;&lt;/tr&gt;\n&#8221;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JFred</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-71957</link>
		<dc:creator>JFred</dc:creator>
		<pubDate>Tue, 11 Dec 2007 17:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-71957</guid>
		<description>Your blog software mangled my code.  Should I have used pre?

Let's try this line:
.map{&#124;x&#124; "&#60;tr&#62;&#60;td&#62;" + x + "&#60;/td&#62;&#60;/tr&#62;\n"}</description>
		<content:encoded><![CDATA[<p>Your blog software mangled my code.  Should I have used pre?</p>
<p>Let&#8217;s try this line:<br />
.map{|x| &#8220;&lt;tr&gt;&lt;td&gt;&#8221; + x + &#8220;&lt;/td&gt;&lt;/tr&gt;\n&#8221;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JFred</title>
		<link>http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-71956</link>
		<dc:creator>JFred</dc:creator>
		<pubDate>Tue, 11 Dec 2007 17:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/#comment-71956</guid>
		<description>I actually have some similar code in a rails app I made.  I computed the insides of the table into a class variable (inside the class but outside any method) essentially like this:

@@redLines = ["text..", "lines of text", ...
 ].map{&#124;x&#124; "" + x + "\n"}

def initialize
  @redLines = @@redLines # copy ref so view can see it.
end

In other words, I removed the loop from the view since the text was constant.   Do that for Rails and Erlang too and see what happens.

Alternatively, compute the text more dynamically with variation on each run to defeat caching.  But constant text in an instance method is a contradiction.

Come to think of it, it might be that the performance difference is due to differences in default cache configurations.  With constant text.</description>
		<content:encoded><![CDATA[<p>I actually have some similar code in a rails app I made.  I computed the insides of the table into a class variable (inside the class but outside any method) essentially like this:</p>
<p>@@redLines = ["text..", "lines of text", ...<br />
 ].map{|x| &#8220;&#8221; + x + &#8220;\n&#8221;}</p>
<p>def initialize<br />
  @redLines = @@redLines # copy ref so view can see it.<br />
end</p>
<p>In other words, I removed the loop from the view since the text was constant.   Do that for Rails and Erlang too and see what happens.</p>
<p>Alternatively, compute the text more dynamically with variation on each run to defeat caching.  But constant text in an instance method is a contradiction.</p>
<p>Come to think of it, it might be that the performance difference is due to differences in default cache configurations.  With constant text.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
