<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<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/"
	>

<channel>
	<title>HirschBlog</title>
	<link>http://weblog.cohi.at</link>
	<description></description>
	<pubDate>Mon, 19 Jan 2009 09:19:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>Parsing Expression Grammar Template Library</title>
		<link>http://weblog.cohi.at/archives/4</link>
		<comments>http://weblog.cohi.at/archives/4#comments</comments>
		<pubDate>Mon, 19 Jan 2009 09:18:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://weblog.cohi.at/archives/4</guid>
		<description><![CDATA[This post is to include a link to my PEGTL library on this blog.
The Parsing Expression Grammar Template Library (PEGTL) is a C++0x library for creating parsers according to a Parsing Expression Grammar (PEG). Grammars are embedded as regular C++ code, created with template programming (not template meta programming). These hierarchies naturally correspond to the [...]]]></description>
			<content:encoded><![CDATA[<p>This post is to include a <a href="http://code.google.com/p/pegtl/">link to my PEGTL library</a> on this blog.</p>
<p>The Parsing Expression Grammar Template Library (PEGTL) is a C++0x library for creating parsers according to a Parsing Expression Grammar (PEG). Grammars are embedded as regular C++ code, created with template programming (not template meta programming). These hierarchies naturally correspond to the inductive definition of PEGs. The library extends on the subject of PEGs with new expression types, actions that can be attached to grammar rules, and mechanisms to ensure helpful diagnostics in case of parsing errors. PEGs are superficially similar to Context-Free Grammars (CFGs); for a description see <a href="http://en.wikipedia.org/wiki/Parsing_expression_grammar">Wikipedia page on PEGs</a> or this <a href="http://pdos.csail.mit.edu/~baford/packrat/popl04/peg-popl04.pdf">paper on PEGs</a> by Bryan Ford.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.cohi.at/archives/4/feed</wfw:commentRss>
		</item>
		<item>
		<title>G++ speed on different CPUs</title>
		<link>http://weblog.cohi.at/archives/3</link>
		<comments>http://weblog.cohi.at/archives/3#comments</comments>
		<pubDate>Thu, 08 Jan 2009 08:16:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://weblog.cohi.at/archives/3</guid>
		<description><![CDATA[
Here&#8217;s the time it takes to compile some C++ code on various machines with various versions of GCC. The list will be extended whenever the opportunity arises.


All benchmarks were run with warm disk cache, however the benchmark includes not only calculation of the dependencies, but also linking a dozen libraries and several dozen executables, and [...]]]></description>
			<content:encoded><![CDATA[<p>
Here&#8217;s the time it takes to compile some C++ code on various machines with various versions of GCC. The list will be extended whenever the opportunity arises.
</p>
<p>
All benchmarks were run with warm disk cache, however the benchmark includes not only calculation of the dependencies, but also linking a dozen libraries and several dozen executables, and therefore depends a little on disk performance, too.
</p>
<h3>MacBook</h3>
<p>
MacBook (Late 2008 Unibody), Intel Core 2 Duo P8600 @ 2.4 GHz (1 CPU, 2 Cores, 2 Threads), 4 GB RAM (256 MB for GFX, 1 display @ 1600&#215;1200x32bpp), Mac OS X 10.5.6, G++ 4.3.2, 32 bit.
</p>
<p><code><br />
# time make -j 3</p>
<p>real	6m11.769s<br />
user	10m27.699s<br />
sys	1m15.926s<br />
</code></p>
<h3>Nehalem</h3>
<p>
Asus P6T Deluxe, Intel Core i7 965 EE @ 3.2 GHz (1 CPU, 4 Cores, 8 Threads), 6 GB RAM, LFS w/Linux 2.6.28, G++ 4.3.2, 64 bit.
</p>
<p><code><br />
# time make -j 15</p>
<p>real	1m22.883s<br />
user	9m27.460s<br />
sys	0m28.319s<br />
</code></p>
<p>
Same box with HyperThreading disabled, i.e. Intel Core i7 965 EE @ 3.2 GHz (1 CPU, 4 Cores, 4 Threads).
</p>
<p><code><br />
# time make -j 7</p>
<p>real	1m36.762s<br />
user	5m53.878s<br />
sys	0m19.923s<br />
</code></p>
<h3>Opteron</h3>
<p>
Sun Fire X4140, AMD Opteron 2356 @ 2300 MHz (2 CPUs, 8 Cores, 8 Threads), 32 GB RAM, RedHat Enterprise Linux w/Kernel 2.6.18-92.el5, G++ 4.1.2-42, 64 bit.
</p>
<p><code><br />
# time make -j 15</p>
<p>real	1m38.732s<br />
user	10m53.521s<br />
sys	0m57.669s<br />
</code></p>
<h3>Pentium IV</h3>
<p>
Dell 6850, Intel Pentium IV Xeon 7140 @ 3.4 GHz (4 CPUs, 8 Cores, 16 Threads; physical and maximal for Xen-partition), 12 GB RAM (in Xen-partition; 16 GB physical), Debian w/Kernel 2.6.18.8-xen, G++ 4.3.0, 64 bit.
</p>
<p><code><br />
# time make -j 31</p>
<p>real	1m51.121s<br />
user	21m47.360s<br />
sys	3m48.360s<br />
</code></p>
<h3>Solaris 8</h3>
<p>
Sun Fire V880, Sun UltraSparc III @ 900 MHz (8 CPUs, 8 Cores, 8 Threads), 16 GB RAM, Solaris 8, G++ 4.0.2, 32 bit.
</p>
<p><code><br />
# time make -j 15</p>
<p>real	8m33.965s<br />
user	60m6.360s<br />
sys	3m50.945s<br />
</code></p>
<h3>Solaris 10</h3>
<p>
Sun Fire 15000, Sun UltraSparc III @ 1200 MHz (4 CPUs, 4 Cores, 4 Threads), 8 GB RAM, Solaris 10, G++ 4.3.0, 64 bit.
</p>
<p><code><br />
# time make -j 7</p>
<p>real	13m34.743s<br />
user	43m19.227s<br />
sys	5m33.501s<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.cohi.at/archives/3/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hallo World!</title>
		<link>http://weblog.cohi.at/archives/1</link>
		<comments>http://weblog.cohi.at/archives/1#comments</comments>
		<pubDate>Thu, 08 Jan 2009 07:30:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[&#8230; and welcome.
]]></description>
			<content:encoded><![CDATA[<p>&#8230; and welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.cohi.at/archives/1/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
