<?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>GNU C | 酷 壳 - CoolShell</title>
	<atom:link href="https://coolshell.cn/tag/gnu-c/feed" rel="self" type="application/rss+xml" />
	<link>https://coolshell.cn</link>
	<description>享受编程和技术所带来的快乐 - Coding Your Ambition</description>
	<lastBuildDate>Fri, 13 Nov 2009 16:30:08 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2</generator>
	<item>
		<title>程序语言性能比拼</title>
		<link>https://coolshell.cn/articles/1788.html</link>
					<comments>https://coolshell.cn/articles/1788.html#comments</comments>
		
		<dc:creator><![CDATA[陈皓]]></dc:creator>
		<pubDate>Mon, 16 Nov 2009 00:20:17 +0000</pubDate>
				<category><![CDATA[技术读物]]></category>
		<category><![CDATA[编程语言]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[GNU C]]></category>
		<category><![CDATA[Go]]></category>
		<guid isPermaLink="false">http://coolshell.cn/?p=1788</guid>

					<description><![CDATA[<p>  下面这个网页，你可以比较各种程序语言的性能： http://shootout.alioth.debian.org/u64/index.php 这个页面，安装...</p>
<p class="read-more"><a class="btn btn-default" href="https://coolshell.cn/articles/1788.html"> Read More<span class="screen-reader-text">  Read More</span></a></p>
The post <a href="https://coolshell.cn/articles/1788.html">程序语言性能比拼</a> first appeared on <a href="https://coolshell.cn">酷 壳 - CoolShell</a>.]]></description>
										<content:encoded><![CDATA[<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3415450859608158"
     crossorigin="anonymous"></script><a href="https://coolshell.cn/wp-content/uploads/2009/11/govsgnuc.jpg"></a><a href="https://coolshell.cn/wp-content/uploads/2009/11/govsgnuc.jpg"></a><a href="https://coolshell.cn/wp-content/uploads/2009/11/govsgnuc.jpg"></a> <a href="https://coolshell.cn/wp-content/uploads/2009/11/measurements_table.jpg"></a> 下面这个网页，你可以比较各种程序语言的性能：</p>
<p style="text-align: center;"><a href="http://shootout.alioth.debian.org/u64/index.php">http://shootout.alioth.debian.org/u64/index.php</a></p>
<p style="text-align: left;">这个页面，安装的是x64 Ubuntu，CPU是Intel® Q6600® 单核。这个网页支持的语言很多，什么C，C++，Java，python，PHP，Erlang，C#，Ruby，……，还有最新的G0语言。</p>
<p style="text-align: left;">在主页上，你可以选择一个语言。比如，我们选择Google的Go语言——Go 6g8g，然后，点击Show按钮，于是，你会看到下面这个界面：</p>
<p style="TEXT-ALIGN: center"><a href="https://coolshell.cn/wp-content/uploads/2009/11/govsgnuc.jpg"><img decoding="async" loading="lazy" title="go vs gnuc" src="https://coolshell.cn/wp-content/uploads/2009/11/govsgnuc.jpg" alt="go vs gnuc" width="525" height="404" /></a> <a href="https://coolshell.cn/wp-content/uploads/2009/11/govsgnuc.jpg"></a><a href="https://coolshell.cn/wp-content/uploads/2009/11/govsgnuc.jpg"></a></p>
<p style="text-align: left;">在这个界面上方，你可以选择两种语言，我们选择的是，上面的是Go 6g8g，而下面是的GNU C，于是下面的图表，是这两个语言各种参数和算法的比较图表。</p>
<p style="text-align: left;"><span id="more-1788"></span></p>
<p style="text-align: left;">在这个图表中，其实就是“Go的性能” 除以 “C的性能”，所以，</p>
<ul>
<li>
<div style="text-align: left;">如果柱状图是大于1的（也就是基线以上的）则说明Go的性能不如C。</div>
</li>
<li>
<div style="text-align: left;">如果柱状图小于1的（也就是基线以下的），说明Go的性能超过了C。</div>
</li>
</ul>
<p style="text-align: left;">再往下，是用来做比较的算法的图表，如下所示。在这个表中，我们可以看到很多算法，单击语言的链接，你就可以看到具体的实现源代码了。</p>
<p><a href="https://coolshell.cn/wp-content/uploads/2009/11/measurements_table.jpg"></a></p>
<p style="text-align: center;"><a href="https://coolshell.cn/wp-content/uploads/2009/11/measurements_table.jpg"><img decoding="async" loading="lazy" title="measurements table" src="https://coolshell.cn/wp-content/uploads/2009/11/measurements_table.jpg" alt="measurements table" width="495" height="290" /></a></p>
<p style="text-align: left;"> （全文完）</p>
<p><!--



<p align="center"><a href= target=_blank><img decoding="async" src=""></a></p>





<p align="center"><img decoding="async" src="https://coolshell.cn/wp-content/uploads/2020/03/coolshell.weixin.jpg"> <img decoding="async" loading="lazy" src="https://coolshell.cn/wp-content/uploads/2020/03/coolshell.mini_.jpg" width="300" height="300"> <br />关注CoolShell微信公众账号和微信小程序</p>

 

--></p>
<div style="margin-top: 15px; font-size: 16px;color: #cc0000;">
<p align="center"><strong>（转载本站文章请注明作者和出处 <a href="https://coolshell.cn/">酷 壳 &#8211; CoolShell</a> ，请勿用于任何商业用途）</strong></p>
</div>

<div class="wp_rp_wrap  wp_rp_vertical_m" id="wp_rp_first"><div class="wp_rp_content"><h3 class="related_post_title">相关文章</h3><ul class="related_post wp_rp"><li ><a href="https://coolshell.cn/articles/22242.html" class="wp_rp_thumbnail"><img src="https://coolshell.cn/wp-content/uploads/2022/05/etcd-150x150.png" alt="ETCD的内存问题" width="150" height="150" /></a><a href="https://coolshell.cn/articles/22242.html" class="wp_rp_title">ETCD的内存问题</a></li><li ><a href="https://coolshell.cn/articles/21615.html" class="wp_rp_thumbnail"><img src="https://coolshell.cn/wp-content/uploads/2021/09/go-generics-150x150.png" alt="Go编程模式 ： 泛型编程" width="150" height="150" /></a><a href="https://coolshell.cn/articles/21615.html" class="wp_rp_title">Go编程模式 ： 泛型编程</a></li><li ><a href="https://coolshell.cn/articles/21263.html" class="wp_rp_thumbnail"><img src="https://coolshell.cn/wp-content/uploads/2020/12/go.k8s-150x150.png" alt="Go 编程模式：k8s Visitor 模式" width="150" height="150" /></a><a href="https://coolshell.cn/articles/21263.html" class="wp_rp_title">Go 编程模式：k8s Visitor 模式</a></li><li ><a href="https://coolshell.cn/articles/21228.html" class="wp_rp_thumbnail"><img src="https://coolshell.cn/wp-content/uploads/2020/12/go.line_.-150x150.png" alt="Go编程模式：Pipeline" width="150" height="150" /></a><a href="https://coolshell.cn/articles/21228.html" class="wp_rp_title">Go编程模式：Pipeline</a></li><li ><a href="https://coolshell.cn/articles/21214.html" class="wp_rp_thumbnail"><img src="https://coolshell.cn/wp-content/uploads/2020/12/go.pair_-150x150.png" alt="Go编程模式：委托和反转控制" width="150" height="150" /></a><a href="https://coolshell.cn/articles/21214.html" class="wp_rp_title">Go编程模式：委托和反转控制</a></li><li ><a href="https://coolshell.cn/articles/21179.html" class="wp_rp_thumbnail"><img src="https://coolshell.cn/wp-content/uploads/2020/12/go.generate-150x150.png" alt="Go 编程模式：Go Generation" width="150" height="150" /></a><a href="https://coolshell.cn/articles/21179.html" class="wp_rp_title">Go 编程模式：Go Generation</a></li></ul></div></div>The post <a href="https://coolshell.cn/articles/1788.html">程序语言性能比拼</a> first appeared on <a href="https://coolshell.cn">酷 壳 - CoolShell</a>.]]></content:encoded>
					
					<wfw:commentRss>https://coolshell.cn/articles/1788.html/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
