<?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: Ruby vs PHP performance</title>
	<atom:link href="http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/</link>
	<description>Ecchi nanowa ikenai to omoimasu</description>
	<lastBuildDate>Sun, 07 Mar 2010 14:01:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Exit</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-10030</link>
		<dc:creator>Exit</dc:creator>
		<pubDate>Sat, 09 Jan 2010 09:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-10030</guid>
		<description>Anyone run tests with compiled PHP (Zend encoded for instance)?

That also should be considered.</description>
		<content:encoded><![CDATA[<p>Anyone run tests with compiled PHP (Zend encoded for instance)?</p>
<p>That also should be considered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: retry</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-9992</link>
		<dc:creator>retry</dc:creator>
		<pubDate>Wed, 04 Nov 2009 07:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-9992</guid>
		<description>I ran your code on my dev box a deb 5.0.3 (lenny) set up with stock php/ruby packages

$ php -v
PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 26 2009 22:16:23)
$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

$ time ./mergesort.php

real    0m6.303s
user    0m6.200s
sys     0m0.032s
$ time ./mergesort.rb

real    0m8.043s
user    0m7.752s
sys     0m0.292s

But this one simple test is hardly enough to evaluate an entire language.  These guys have been benchmarking languages for years:
http://shootout.alioth.debian.org/u32/benchmark.php?test=all&amp;lang=php&amp;lang2=ruby&amp;box=1

php is generally faster, although ruby 1.9 does better. Jruby doesn&#039;t impress me at all.</description>
		<content:encoded><![CDATA[<p>I ran your code on my dev box a deb 5.0.3 (lenny) set up with stock php/ruby packages</p>
<p>$ php -v<br />
PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 26 2009 22:16:23)<br />
$ ruby -v<br />
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]</p>
<p>$ time ./mergesort.php</p>
<p>real    0m6.303s<br />
user    0m6.200s<br />
sys     0m0.032s<br />
$ time ./mergesort.rb</p>
<p>real    0m8.043s<br />
user    0m7.752s<br />
sys     0m0.292s</p>
<p>But this one simple test is hardly enough to evaluate an entire language.  These guys have been benchmarking languages for years:<br />
<a href="http://shootout.alioth.debian.org/u32/benchmark.php?test=all&amp;lang=php&amp;lang2=ruby&amp;box=1" rel="nofollow">http://shootout.alioth.debian.org/u32/benchmark.php?test=all&amp;lang=php&amp;lang2=ruby&amp;box=1</a></p>
<p>php is generally faster, although ruby 1.9 does better. Jruby doesn&#8217;t impress me at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 悠閒莊園 &#187; Blog Archive &#187; Scripting language 之選擇</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-9988</link>
		<dc:creator>悠閒莊園 &#187; Blog Archive &#187; Scripting language 之選擇</dc:creator>
		<pubDate>Sat, 10 Oct 2009 20:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-9988</guid>
		<description>[...] 今天在這個赖洪礼的 blog &#8211; Ruby vs PHP performance中找到點跟據… 然而，我個人對 python，ruby 等都不很熟 ruby 更是沒做過有用的東西出來… 而且我自已在測試 ruby 1.8 時速度也沒很快，跟 php 差不多… Gentoo 也沒 ruby 1.9 所以現階段應不會多嘗試…但仍值得參考… [...]</description>
		<content:encoded><![CDATA[<p>[...] 今天在這個赖洪礼的 blog &#8211; Ruby vs PHP performance中找到點跟據… 然而，我個人對 python，ruby 等都不很熟 ruby 更是沒做過有用的東西出來… 而且我自已在測試 ruby 1.8 時速度也沒很快，跟 php 差不多… Gentoo 也沒 ruby 1.9 所以現階段應不會多嘗試…但仍值得參考… [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Verma</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-9985</link>
		<dc:creator>Amit Verma</dc:creator>
		<pubDate>Fri, 21 Aug 2009 06:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-9985</guid>
		<description>If you write something in a loop in PHP like - 
count($a) &gt; 0 

And if PHP is trying to evaluate the size of array using count() function than PHP is doing it RIGHT.

PHP needs to do what is &quot;asked to do&quot; and that is perfectly legitimate.

There may be a chance that the size of the array is changing/modifying due to some operation inside the loop? In that case, if PHP is minding it&#039;s business than that&#039;s perfectly alright. If you&#039;re sane enough you&#039;ll write it this way -

$arrSize = count($a);
$arrSize &gt; 0 

{Pretty Easy, Hunh??}

Hope I made my point clear??


--
Amit Verma</description>
		<content:encoded><![CDATA[<p>If you write something in a loop in PHP like &#8211;<br />
count($a) &gt; 0 </p>
<p>And if PHP is trying to evaluate the size of array using count() function than PHP is doing it RIGHT.</p>
<p>PHP needs to do what is &#8220;asked to do&#8221; and that is perfectly legitimate.</p>
<p>There may be a chance that the size of the array is changing/modifying due to some operation inside the loop? In that case, if PHP is minding it&#8217;s business than that&#8217;s perfectly alright. If you&#8217;re sane enough you&#8217;ll write it this way -</p>
<p>$arrSize = count($a);<br />
$arrSize &gt; 0 </p>
<p>{Pretty Easy, Hunh??}</p>
<p>Hope I made my point clear??</p>
<p>&#8211;<br />
Amit Verma</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-9984</link>
		<dc:creator>Hans</dc:creator>
		<pubDate>Tue, 11 Aug 2009 08:39:15 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-9984</guid>
		<description>@Luis Jose

&gt;&gt;&quot;Hans, well, twitter is written in RoR so…&quot;

Essential parts of Twitter is again written in Scala. (Threading issues). 

CodeIgniter and C++API for Threading could have handled Twitter with ease. 
(This combo can Kick assss of all language frameworks out there) 

Not putting you down. Ruby is a gr8 language but there is still 2 years time to mature in terms of :

1) consistency - I still read people&#039;s problems installing Ruby in Windows XP box.
2) speed        - Ruby 1.9 speed is not enuf for me. I need it to be close to Java.
3) libraries     - Worst part !!! Still there are no free charting libraries in Ruby (Graphviz suckss assss), 
                        Wx-Ruby and Fx-Ruby are half-baked
                        Sci/Math modules - where are they hiding? Can I do PCA analysis using Ruby?
                        ChemRuby - lot of bugs in it.

4)Others        -  Till Ruby fights java, there is no victory to it. Twitter people put Ruby down and Scala up.
                        Compatibility - Still I can&#039;t use Ruby 1.9 on RoR
                        I need a browser plug-in like JRE plug-in for my apps. 
                        Without using JRuby, I need a pure ruby solution for my tasks.
Cheers,
Hans</description>
		<content:encoded><![CDATA[<p>@Luis Jose</p>
<p>&gt;&gt;&#8221;Hans, well, twitter is written in RoR so…&#8221;</p>
<p>Essential parts of Twitter is again written in Scala. (Threading issues). </p>
<p>CodeIgniter and C++API for Threading could have handled Twitter with ease.<br />
(This combo can Kick assss of all language frameworks out there) </p>
<p>Not putting you down. Ruby is a gr8 language but there is still 2 years time to mature in terms of :</p>
<p>1) consistency &#8211; I still read people&#8217;s problems installing Ruby in Windows XP box.<br />
2) speed        &#8211; Ruby 1.9 speed is not enuf for me. I need it to be close to Java.<br />
3) libraries     &#8211; Worst part !!! Still there are no free charting libraries in Ruby (Graphviz suckss assss),<br />
                        Wx-Ruby and Fx-Ruby are half-baked<br />
                        Sci/Math modules &#8211; where are they hiding? Can I do PCA analysis using Ruby?<br />
                        ChemRuby &#8211; lot of bugs in it.</p>
<p>4)Others        &#8211;  Till Ruby fights java, there is no victory to it. Twitter people put Ruby down and Scala up.<br />
                        Compatibility &#8211; Still I can&#8217;t use Ruby 1.9 on RoR<br />
                        I need a browser plug-in like JRE plug-in for my apps.<br />
                        Without using JRuby, I need a pure ruby solution for my tasks.<br />
Cheers,<br />
Hans</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-9979</link>
		<dc:creator>Rodrigo</dc:creator>
		<pubDate>Mon, 27 Jul 2009 21:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-9979</guid>
		<description>Jython*!</description>
		<content:encoded><![CDATA[<p>Jython*!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-9978</link>
		<dc:creator>Rodrigo</dc:creator>
		<pubDate>Mon, 27 Jul 2009 21:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-9978</guid>
		<description>Could you update this and use Python 3.0.1 and JPython??</description>
		<content:encoded><![CDATA[<p>Could you update this and use Python 3.0.1 and JPython??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis José</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-9976</link>
		<dc:creator>Luis José</dc:creator>
		<pubDate>Wed, 15 Jul 2009 23:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-9976</guid>
		<description>Hans, well, twitter is written in RoR so...</description>
		<content:encoded><![CDATA[<p>Hans, well, twitter is written in RoR so&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Is Ruby being blamed for nothing? &#171; Pacoup.com</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-9973</link>
		<dc:creator>Is Ruby being blamed for nothing? &#171; Pacoup.com</dc:creator>
		<pubDate>Fri, 03 Jul 2009 13:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-9973</guid>
		<description>[...] together in a neat package, but they tend to slow your application a bit. Basing ourselves on Hongli Lai&#8217;s blog post, it&#8217;s quite obvious that Ruby apps using Ruby previous to version 1.9 would be slower than [...]</description>
		<content:encoded><![CDATA[<p>[...] together in a neat package, but they tend to slow your application a bit. Basing ourselves on Hongli Lai&#8217;s blog post, it&#8217;s quite obvious that Ruby apps using Ruby previous to version 1.9 would be slower than [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans</title>
		<link>http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/comment-page-2/#comment-9969</link>
		<dc:creator>Hans</dc:creator>
		<pubDate>Sun, 28 Jun 2009 13:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance/#comment-9969</guid>
		<description>&quot;But, if one is making Facebook where there are going to be millions, PHP is dead on arrival.&quot;
and still Facebook is built using PHP...

Personally I like PHP and if you write your coded right then it is fast enough.</description>
		<content:encoded><![CDATA[<p>&#8220;But, if one is making Facebook where there are going to be millions, PHP is dead on arrival.&#8221;<br />
and still Facebook is built using PHP&#8230;</p>
<p>Personally I like PHP and if you write your coded right then it is fast enough.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
