<?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: PHP vs Ruby speed test</title>
	<atom:link href="http://www.akngo.com/webdev/php-vs-ruby-speed-test/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.akngo.com/webdev/php-vs-ruby-speed-test/</link>
	<description>I&#039;m a PC, Program Counter</description>
	<lastBuildDate>Wed, 13 Jul 2011 05:49:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: A.K.</title>
		<link>http://www.akngo.com/webdev/php-vs-ruby-speed-test/comment-page-1/#comment-388</link>
		<dc:creator>A.K.</dc:creator>
		<pubDate>Wed, 09 Dec 2009 19:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.akngo.com/webdev/php-vs-ruby-speed-test/#comment-388</guid>
		<description>Tom,

Quite an interesting yet informative rant. I agree with you that benchmarks do depend on a lot of factors, but statistically speaking, if you run it enough times, you should be able to have conclusive evidence that one is faster than another.

Of course, in real life, it doesn&#039;t matter the number of milliseconds of improvements. One can always scale up or scale out, just depends on what you want to do. However, on the other hand, processor intensive applications (graphics, simulation, cad, etc...) do need the fastest languages (and easiest of those.) But I do agree with you, for the majority of webapps, the language you choose should be a personal one and not one based solely on benchmarks.</description>
		<content:encoded><![CDATA[<p>Tom,</p>
<p>Quite an interesting yet informative rant. I agree with you that benchmarks do depend on a lot of factors, but statistically speaking, if you run it enough times, you should be able to have conclusive evidence that one is faster than another.</p>
<p>Of course, in real life, it doesn&#8217;t matter the number of milliseconds of improvements. One can always scale up or scale out, just depends on what you want to do. However, on the other hand, processor intensive applications (graphics, simulation, cad, etc&#8230;) do need the fastest languages (and easiest of those.) But I do agree with you, for the majority of webapps, the language you choose should be a personal one and not one based solely on benchmarks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.akngo.com/webdev/php-vs-ruby-speed-test/comment-page-1/#comment-386</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 07 Dec 2009 22:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.akngo.com/webdev/php-vs-ruby-speed-test/#comment-386</guid>
		<description>People just like to take sides and make false or unfounded claims. I&#039;ve heard so many times this is better or that is better. I&#039;ve then went off and looked for benchmarks because generally the person telling me what was better couldn&#039;t prove anything. They just said it was better and that was that. Like whatever they said was true. Well, if I quack like a duck I&#039;m not going to sprout wings and fly. So...

I saw that the original tester there updated his test. Did he skew the numbers not to look wrong and prove himself wrong? Who knows. I&#039;ll take +/- half a second or so as just normal variation. If you keep running the tests you&#039;ll get different rules. Was there any other processes running on the computer? Did something else spike because it had to perform some kinda check on something in the system? I mean it&#039;s so hard to ever test. However the jump in those test results where all of a sudden a newer version of Ruby is faster than Python.....?? Uh. caubullshcaught bullshcaugh ...excuse me. Yea, well it makes perfect sense Python is faster and then you have C++. But I mean he might as well put the numbers as Ruby being faster than C++.

However. Half a second running a sort operation or even 4 seconds running it is of no consequence. What the original tester did point out (which is great that he did) was that who knows when it comes to the application of the language. Ruby on Rails is a great framework but if it slows things down...It slows things down. Now take PHP and it&#039;s frameworks. Say CakePHP which aims to mirror RoR (mostly). Which is faster? At what? Doing what? Real world...Say a blog? Well it depends. Do you know that you can code a &quot;blog&quot; to do the same thing all of a couple thousand different ways using both frameworks?? 

So testing is a little silly because in the real world you have so many other factors. Plus none of these tests were under any HTTP load. So who knows how they interface and work with Apache. I mean that right there could make the difference. On top of user code.

The one thing I want to point out is the false assumption that none of these languages scale. NO. They ALL scale. Scaling is not defined by how fast a language can run through a loop and sort something. Scaling is done by means of being able to expand your infrastructure to handle the load (in this case web user traffic). If you can code a RoR or CakePHP app to use multiple databases and live in a load balanced Apache environment (and you can, both frameworks are designed for this...and with ease) then you CAN scale. It doesn&#039;t really matter if one language can execute a sort faster or not. Your web app isn&#039;t sorting and if fractions of a second all equate to you needing 50 or 51 servers to handle the traffic....When traffic itself fluctuates and even grows so you&#039;d only need more servers one day anyway....Honestly, who cares? At the point where you&#039;re talking about needing an additional server or two or fifty when you have dozens of them already...You better sure as hell have some kinda revenue paying for all those servers at that point. I don&#039;t think using one language over another is ever going to be proved to equate to thousands of dollars in savings. If so. Where are those benchmarks?</description>
		<content:encoded><![CDATA[<p>People just like to take sides and make false or unfounded claims. I&#8217;ve heard so many times this is better or that is better. I&#8217;ve then went off and looked for benchmarks because generally the person telling me what was better couldn&#8217;t prove anything. They just said it was better and that was that. Like whatever they said was true. Well, if I quack like a duck I&#8217;m not going to sprout wings and fly. So&#8230;</p>
<p>I saw that the original tester there updated his test. Did he skew the numbers not to look wrong and prove himself wrong? Who knows. I&#8217;ll take +/- half a second or so as just normal variation. If you keep running the tests you&#8217;ll get different rules. Was there any other processes running on the computer? Did something else spike because it had to perform some kinda check on something in the system? I mean it&#8217;s so hard to ever test. However the jump in those test results where all of a sudden a newer version of Ruby is faster than Python&#8230;..?? Uh. caubullshcaught bullshcaugh &#8230;excuse me. Yea, well it makes perfect sense Python is faster and then you have C++. But I mean he might as well put the numbers as Ruby being faster than C++.</p>
<p>However. Half a second running a sort operation or even 4 seconds running it is of no consequence. What the original tester did point out (which is great that he did) was that who knows when it comes to the application of the language. Ruby on Rails is a great framework but if it slows things down&#8230;It slows things down. Now take PHP and it&#8217;s frameworks. Say CakePHP which aims to mirror RoR (mostly). Which is faster? At what? Doing what? Real world&#8230;Say a blog? Well it depends. Do you know that you can code a &#8220;blog&#8221; to do the same thing all of a couple thousand different ways using both frameworks?? </p>
<p>So testing is a little silly because in the real world you have so many other factors. Plus none of these tests were under any HTTP load. So who knows how they interface and work with Apache. I mean that right there could make the difference. On top of user code.</p>
<p>The one thing I want to point out is the false assumption that none of these languages scale. NO. They ALL scale. Scaling is not defined by how fast a language can run through a loop and sort something. Scaling is done by means of being able to expand your infrastructure to handle the load (in this case web user traffic). If you can code a RoR or CakePHP app to use multiple databases and live in a load balanced Apache environment (and you can, both frameworks are designed for this&#8230;and with ease) then you CAN scale. It doesn&#8217;t really matter if one language can execute a sort faster or not. Your web app isn&#8217;t sorting and if fractions of a second all equate to you needing 50 or 51 servers to handle the traffic&#8230;.When traffic itself fluctuates and even grows so you&#8217;d only need more servers one day anyway&#8230;.Honestly, who cares? At the point where you&#8217;re talking about needing an additional server or two or fifty when you have dozens of them already&#8230;You better sure as hell have some kinda revenue paying for all those servers at that point. I don&#8217;t think using one language over another is ever going to be proved to equate to thousands of dollars in savings. If so. Where are those benchmarks?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trejkaz</title>
		<link>http://www.akngo.com/webdev/php-vs-ruby-speed-test/comment-page-1/#comment-376</link>
		<dc:creator>Trejkaz</dc:creator>
		<pubDate>Thu, 20 Aug 2009 12:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.akngo.com/webdev/php-vs-ruby-speed-test/#comment-376</guid>
		<description>Erm, Serpentin... that was the old VM.  Presumably the new one is still radically faster (as JRuby should also be.)  So really what makes the tests on this page convenient is that it uses the *slowest* Ruby implementation available. :-)

Of course this is even more so the case almost a year later, as JRuby has made even more leaps since then...</description>
		<content:encoded><![CDATA[<p>Erm, Serpentin&#8230; that was the old VM.  Presumably the new one is still radically faster (as JRuby should also be.)  So really what makes the tests on this page convenient is that it uses the *slowest* Ruby implementation available. <img src='http://www.akngo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Of course this is even more so the case almost a year later, as JRuby has made even more leaps since then&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Faster than Python?</title>
		<link>http://www.akngo.com/webdev/php-vs-ruby-speed-test/comment-page-1/#comment-339</link>
		<dc:creator>PHP Faster than Python?</dc:creator>
		<pubDate>Sat, 06 Dec 2008 00:57:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.akngo.com/webdev/php-vs-ruby-speed-test/#comment-339</guid>
		<description>[...] PHP, Python runs slower?&quot; It intrigued me since I already did something similar to this before here. It has been said that Python is faster than PHP, but why in this case, Python is clearly slower [...]</description>
		<content:encoded><![CDATA[<p>[...] PHP, Python runs slower?&quot; It intrigued me since I already did something similar to this before here. It has been said that Python is faster than PHP, but why in this case, Python is clearly slower [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A.K.</title>
		<link>http://www.akngo.com/webdev/php-vs-ruby-speed-test/comment-page-1/#comment-319</link>
		<dc:creator>A.K.</dc:creator>
		<pubDate>Thu, 16 Oct 2008 16:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.akngo.com/webdev/php-vs-ruby-speed-test/#comment-319</guid>
		<description>Why thank you :)</description>
		<content:encoded><![CDATA[<p>Why thank you <img src='http://www.akngo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serpantin</title>
		<link>http://www.akngo.com/webdev/php-vs-ruby-speed-test/comment-page-1/#comment-317</link>
		<dc:creator>Serpantin</dc:creator>
		<pubDate>Thu, 16 Oct 2008 15:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.akngo.com/webdev/php-vs-ruby-speed-test/#comment-317</guid>
		<description>Well done! I knew Ruby couldn&#039;t be faster than PHP, they are both high-level interpreters FGS!

Thank you for the test. Thank you big time!</description>
		<content:encoded><![CDATA[<p>Well done! I knew Ruby couldn&#8217;t be faster than PHP, they are both high-level interpreters FGS!</p>
<p>Thank you for the test. Thank you big time!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

