<?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: Holy Shmoly, Ruby 1.9 smokes Python away!	</title>
	<atom:link href="https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/</link>
	<description>Meditations on programming, startups, and technology</description>
	<lastBuildDate>Thu, 29 Nov 2012 03:55:47 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Johan Nestaas		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-28072</link>

		<dc:creator><![CDATA[Johan Nestaas]]></dc:creator>
		<pubDate>Thu, 29 Nov 2012 03:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-28072</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-27294&quot;&gt;Rohan Jain&lt;/a&gt;.

Computer performance professor just showed us this, so I had to try it out with newer versions.

Slowest to fastest:
ruby 1.8: 0m26.671s
python 3.2: 0m8.979s
python 2.7: 0m7.676s
ruby 1.9.1: 0m5.610s
Lua 5.1.5: 0m5.074s

ubuntu 12.10, intel sandybridge i5-2500k quad-core 3.3GHz(i think), some fast ddr3 ram, all interpreters located on sata3 ssd.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-27294">Rohan Jain</a>.</p>
<p>Computer performance professor just showed us this, so I had to try it out with newer versions.</p>
<p>Slowest to fastest:<br />
ruby 1.8: 0m26.671s<br />
python 3.2: 0m8.979s<br />
python 2.7: 0m7.676s<br />
ruby 1.9.1: 0m5.610s<br />
Lua 5.1.5: 0m5.074s</p>
<p>ubuntu 12.10, intel sandybridge i5-2500k quad-core 3.3GHz(i think), some fast ddr3 ram, all interpreters located on sata3 ssd.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rohan Jain		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-27294</link>

		<dc:creator><![CDATA[Rohan Jain]]></dc:creator>
		<pubDate>Thu, 12 Apr 2012 05:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-27294</guid>

					<description><![CDATA[On my debian sid:

Ruby 1.8.7: 32.65s
Ruby 1.9.3: 5.85s
Python 2.7.3: 11.06s
Python 3.2: 11.89s
Haskell (no opt): 62.57s
Haskell (Compiled): 3.58s

So ruby 1.9 *is* fast.]]></description>
			<content:encoded><![CDATA[<p>On my debian sid:</p>
<p>Ruby 1.8.7: 32.65s<br />
Ruby 1.9.3: 5.85s<br />
Python 2.7.3: 11.06s<br />
Python 3.2: 11.89s<br />
Haskell (no opt): 62.57s<br />
Haskell (Compiled): 3.58s</p>
<p>So ruby 1.9 *is* fast.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: michael		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-26146</link>

		<dc:creator><![CDATA[michael]]></dc:creator>
		<pubDate>Wed, 28 Dec 2011 06:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-26146</guid>

					<description><![CDATA[Python on PyPy did this in 4.074s and in 17 secs on the same machine. Ruby did it in 10.5. 

I&#039;m happy to see Ruby getting some much needed optimization.]]></description>
			<content:encoded><![CDATA[<p>Python on PyPy did this in 4.074s and in 17 secs on the same machine. Ruby did it in 10.5. </p>
<p>I&#8217;m happy to see Ruby getting some much needed optimization.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: peddro vallle		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-26122</link>

		<dc:creator><![CDATA[peddro vallle]]></dc:creator>
		<pubDate>Tue, 20 Dec 2011 17:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-26122</guid>

					<description><![CDATA[With jruby experiencing a speed up of about 200% thanks to invokedynamic in java 7.02 is time to rewrite the comparison.

http://blog.jruby.org/2011/12getting_started_with_jruby_and_java_7/


also in Hacker News:
 http://news.ycombinator.com/item?id=3372816]]></description>
			<content:encoded><![CDATA[<p>With jruby experiencing a speed up of about 200% thanks to invokedynamic in java 7.02 is time to rewrite the comparison.</p>
<p><a href="http://blog.jruby.org/2011/12getting_started_with_jruby_and_java_7/" rel="nofollow ugc">http://blog.jruby.org/2011/12getting_started_with_jruby_and_java_7/</a></p>
<p>also in Hacker News:<br />
 <a href="http://news.ycombinator.com/item?id=3372816" rel="nofollow ugc">http://news.ycombinator.com/item?id=3372816</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: roger		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-8386</link>

		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Sat, 21 Nov 2009 03:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-8386</guid>

					<description><![CDATA[for me (windows)
ruby 1.9.1

16.2s

python 2.6
25s

ruby crystalized [1]
4.8s
Enjoy.
-r
[1] http://github.com/rdp/crystalizer]]></description>
			<content:encoded><![CDATA[<p>for me (windows)<br />
ruby 1.9.1</p>
<p>16.2s</p>
<p>python 2.6<br />
25s</p>
<p>ruby crystalized [1]<br />
4.8s<br />
Enjoy.<br />
-r<br />
[1] <a href="http://github.com/rdp/crystalizer" rel="nofollow ugc">http://github.com/rdp/crystalizer</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jorrit Posthuma		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-6679</link>

		<dc:creator><![CDATA[Jorrit Posthuma]]></dc:creator>
		<pubDate>Sat, 11 Jul 2009 11:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-6679</guid>

					<description><![CDATA[Btw, that means 0.586306 seconds, what is more than 20 times faster than Ruby 1.9!]]></description>
			<content:encoded><![CDATA[<p>Btw, that means 0.586306 seconds, what is more than 20 times faster than Ruby 1.9!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jorrit Posthuma		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-6678</link>

		<dc:creator><![CDATA[Jorrit Posthuma]]></dc:creator>
		<pubDate>Sat, 11 Jul 2009 11:29:57 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-6678</guid>

					<description><![CDATA[A honest Haskel comparison (same algoritm), but it can be a lot faster (as shown by Twey).

fib :: Int -&#062; Int
fib i   &#124; (i == 0) &#124;&#124; (i == 1)  = i
        &#124; otherwise             = fib (i-1) + fib (i-2)
        
fibSeq :: [(Int, Int)]
fibSeq = [ (i, fib i) &#124; i &#060;- [0..36]]

Slim:Desktop jorrit$ ./fib 
[(0,0),(1,1),(2,1),(3,2),(4,3),(5,5),(6,8),(7,13),(8,21),(9,34),(10,55),(11,89),(12,144),(13,233),(14,377),(15,610),(16,987),(17,1597),(18,2584),(19,4181),(20,6765),(21,10946),(22,17711),(23,28657),(24,46368),(25,75025),(26,121393),(27,196418),(28,317811),(29,514229),(30,832040),(31,1346269),(32,2178309),(33,3524578),(34,5702887),(35,9227465),(36,14930352)]
0.586306]]></description>
			<content:encoded><![CDATA[<p>A honest Haskel comparison (same algoritm), but it can be a lot faster (as shown by Twey).</p>
<p>fib :: Int -&gt; Int<br />
fib i   | (i == 0) || (i == 1)  = i<br />
        | otherwise             = fib (i-1) + fib (i-2)</p>
<p>fibSeq :: [(Int, Int)]<br />
fibSeq = [ (i, fib i) | i &lt;- [0..36]]</p>
<p>Slim:Desktop jorrit$ ./fib<br />
[(0,0),(1,1),(2,1),(3,2),(4,3),(5,5),(6,8),(7,13),(8,21),(9,34),(10,55),(11,89),(12,144),(13,233),(14,377),(15,610),(16,987),(17,1597),(18,2584),(19,4181),(20,6765),(21,10946),(22,17711),(23,28657),(24,46368),(25,75025),(26,121393),(27,196418),(28,317811),(29,514229),(30,832040),(31,1346269),(32,2178309),(33,3524578),(34,5702887),(35,9227465),(36,14930352)]<br />
0.586306</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Real World		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-6453</link>

		<dc:creator><![CDATA[Real World]]></dc:creator>
		<pubDate>Mon, 22 Jun 2009 02:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-6453</guid>

					<description><![CDATA[I develop to get paid.]]></description>
			<content:encoded><![CDATA[<p>I develop to get paid.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Diego Viola		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-6305</link>

		<dc:creator><![CDATA[Diego Viola]]></dc:creator>
		<pubDate>Mon, 01 Jun 2009 07:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-6305</guid>

					<description><![CDATA[lol ruby 1.9 kicks python ass.

[root@diego ~]# time ruby test.rb 
n=0 =&#062; 0                          
n=1 =&#062; 1                          
n=2 =&#062; 1                          
...
n=34 =&#062; 5702887                   
n=35 =&#062; 9227465                   

real    0m15.056s
user    0m14.868s
sys     0m0.086s
[root@diego ~]# time python test.py
n=0 =&#062; 0
n=1 =&#062; 1
n=2 =&#062; 1
...
n=34 =&#062; 5702887
n=35 =&#062; 9227465

real    0m42.697s
user    0m42.107s
sys     0m0.165s
[root@diego ~]#]]></description>
			<content:encoded><![CDATA[<p>lol ruby 1.9 kicks python ass.</p>
<p>[root@diego ~]# time ruby test.rb<br />
n=0 =&gt; 0<br />
n=1 =&gt; 1<br />
n=2 =&gt; 1<br />
&#8230;<br />
n=34 =&gt; 5702887<br />
n=35 =&gt; 9227465                   </p>
<p>real    0m15.056s<br />
user    0m14.868s<br />
sys     0m0.086s<br />
[root@diego ~]# time python test.py<br />
n=0 =&gt; 0<br />
n=1 =&gt; 1<br />
n=2 =&gt; 1<br />
&#8230;<br />
n=34 =&gt; 5702887<br />
n=35 =&gt; 9227465</p>
<p>real    0m42.697s<br />
user    0m42.107s<br />
sys     0m0.165s<br />
[root@diego ~]#</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric		</title>
		<link>https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/#comment-6293</link>

		<dc:creator><![CDATA[Eric]]></dc:creator>
		<pubDate>Thu, 28 May 2009 13:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/#comment-6293</guid>

					<description><![CDATA[Python 2.6.2 is faster and really faster with psyco:

On a Intel Core i7 940 (2.9 Ghz) :

16s for python 2.6.2 without psyco
0.9s with psyco !!!!!]]></description>
			<content:encoded><![CDATA[<p>Python 2.6.2 is faster and really faster with psyco:</p>
<p>On a Intel Core i7 940 (2.9 Ghz) :</p>
<p>16s for python 2.6.2 without psyco<br />
0.9s with psyco !!!!!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
