<?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>performance Archives | Programming Zen</title>
	<atom:link href="https://programmingzen.com/tag/performance/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmingzen.com/tag/performance/</link>
	<description>Meditations on programming, startups, and technology</description>
	<lastBuildDate>Thu, 05 Jun 2008 17:36:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">1397766</site>	<item>
		<title>MagLev handles trees like a monkey</title>
		<link>https://programmingzen.com/maglev-handles-trees-like-a-monkey/</link>
					<comments>https://programmingzen.com/maglev-handles-trees-like-a-monkey/#comments</comments>
		
		<dc:creator><![CDATA[Antonio Cangiano]]></dc:creator>
		<pubDate>Thu, 05 Jun 2008 17:05:32 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[benchmarks]]></category>
		<category><![CDATA[maglev]]></category>
		<category><![CDATA[performance]]></category>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=187</guid>

					<description><![CDATA[<p>Over the past couple of nights, I tried out MagLev on my Mac laptop (Mac OS X Leopard, 2.2GHz, 2GB Ram). While the shootout will provide us with a detailed comparison between MagLev and the other major Ruby implementations (on many tests) I thought I&#x2019;d share my first impressions. MagLev is going to be a fast implementation of Ruby. How many times faster? Well, it depends on the test, and I don&#x2019;t have systematic numbers yet to come up with a geometric mean of the ratios (the shootout will do just that). What I can tell you now though, is </p>
<p>The post <a href="https://programmingzen.com/maglev-handles-trees-like-a-monkey/">MagLev handles trees like a monkey</a> appeared first on <a href="https://programmingzen.com">Programming Zen</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Over the past couple of nights, I tried out <a href="https://ruby.gemstone.com/">MagLev</a> on my Mac laptop (Mac <span class="caps">OS X</span> Leopard, 2.2GHz, 2GB Ram). While the shootout will provide us with a detailed comparison between MagLev and the other major Ruby implementations (on <a href="https://github.com/acangiano/ruby-benchmark-suite/tree/master">many tests</a>) I thought I&#8217;d share my first impressions.</p>
<p>MagLev is going to be a fast implementation of Ruby. How many times faster? Well, it depends on the test, and I don&#8217;t have systematic numbers yet to come up with a geometric mean of the ratios (the shootout will do just that). What I can tell you now though, is that it&#8217;s fast, significantly faster than <span class="caps">MRI</span>. You know that slowness that you&#8217;ve almost come to expect when running a Ruby script? It&#8217;s simply not there with MagLev. And let&#8217;s not forget, that MagLev&#8217;s added value is not limited to performance, in the same way that JRuby&#8217;s integration with Java is a strong selling point.</p>
<p>It&#8217;s not mature, of course, and there are a few things which haven&#8217;t been implemented yet. But it&#8217;s complete enough to run WEBrick and several other small programs I tried. A truly impressive accomplishment if you think about what was achieved in just three months. So let me reassure you that it&#8217;s not vaporware, it&#8217;s real and it&#8217;s fast.</p>
<p>I want to leave you with an example of a non-trivial benchmark. Running the <a href="https://shootout.alioth.debian.org/gp4/benchmark.php?test=binarytrees&#38;lang=ruby">binary-trees test</a> from the Computer Language Benchmarks Game (chosen because it&#8217;s the first test), I obtained the following results:</p>
<div align="center">
<table>
<tr>
<td><span class="caps">PHP</span> 5.2.5</td>
<td>100.603s</td>
</tr>
<tr>
<td>Perl 5.8.8</td>
<td>70.885s</td>
</tr>
<tr>
<td>Ruby 1.8.6</td>
<td>60.089s</td>
</tr>
<tr>
<td>Python 2.5.1</td>
<td>29.908s</td>
</tr>
<tr style="background:lightgreen;">
<td>MagLev</td>
<td>7.673s</td>
</tr>
<tr>
<td>C++ (gcc 4.0.1)</td>
<td>6.265s</td>
</tr>
</table>
</div>
<p></p>
<p>Aside from being much faster than Ruby 1.8.6, MagLev&#8217;s speed is pretty darn close to that of the extremely fast C++ (complied with g++ and all the optimizations), in this specific case.</p>
<p>You can&#8217;t read too much from a single test, especially when we are not comparing different VMs from the same identical script like we&#8217;ll do for the shootout. It&#8217;s impressive nevertheless and it should give you a hint about MagLev&#8217;s speed even when facing non-trivial, non-ad-hoc benchmarks.</p>
<p>The post <a href="https://programmingzen.com/maglev-handles-trees-like-a-monkey/">MagLev handles trees like a monkey</a> appeared first on <a href="https://programmingzen.com">Programming Zen</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://programmingzen.com/maglev-handles-trees-like-a-monkey/feed/</wfw:commentRss>
			<slash:comments>30</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">187</post-id>	</item>
	</channel>
</rss>
