<?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: Half a half: Part 2</title>
	<atom:link href="http://www.parolski.com/2008/12/13/half-a-half-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.parolski.com/2008/12/13/half-a-half-part-2/</link>
	<description>Faith, Solaris, and Chicken Korma, by Anton Parol</description>
	<lastBuildDate>Tue, 11 May 2010 09:02:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Liam McBrien</title>
		<link>http://www.parolski.com/2008/12/13/half-a-half-part-2/comment-page-1/#comment-454</link>
		<dc:creator>Liam McBrien</dc:creator>
		<pubDate>Wed, 17 Dec 2008 18:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.parolski.com/?p=158#comment-454</guid>
		<description>OK, so here&#039;s how those two runs stack up against each other:

With the I/O, the tests take 1.019s and 322.714s, meaning that the loop version is roughly 317 times slower (322.714 / 1.019).

Without the I/O, the tests take 0.292s and 21.83s, meaning that the loop version is roughly 75 times slower (21.83/0.292).

So, by removing the console output from the loop program, we get over four times better performance relative to the non-loop version (317/75). This means that roughly 80% of the loop version&#039;s execution time must be the I/O - just goes to show it&#039;s always worth looking at where the bottlenecks in a system are!</description>
		<content:encoded><![CDATA[<p>OK, so here&#8217;s how those two runs stack up against each other:</p>
<p>With the I/O, the tests take 1.019s and 322.714s, meaning that the loop version is roughly 317 times slower (322.714 / 1.019).</p>
<p>Without the I/O, the tests take 0.292s and 21.83s, meaning that the loop version is roughly 75 times slower (21.83/0.292).</p>
<p>So, by removing the console output from the loop program, we get over four times better performance relative to the non-loop version (317/75). This means that roughly 80% of the loop version&#8217;s execution time must be the I/O &#8211; just goes to show it&#8217;s always worth looking at where the bottlenecks in a system are!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton Parol</title>
		<link>http://www.parolski.com/2008/12/13/half-a-half-part-2/comment-page-1/#comment-453</link>
		<dc:creator>Anton Parol</dc:creator>
		<pubDate>Sun, 14 Dec 2008 18:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.parolski.com/?p=158#comment-453</guid>
		<description>Both these sets of results are with the I/O calls removed. The first results are non loop, the second are with the loop:

anton@anton-laptop classes $ time java The_proper_half 4000

real	0m0.292s
user	0m0.384s
sys	0m0.028s
anton@anton-laptop classes $ time java Half_of_a_half 4000

real	0m21.830s
user	0m22.169s
sys	0m0.108s</description>
		<content:encoded><![CDATA[<p>Both these sets of results are with the I/O calls removed. The first results are non loop, the second are with the loop:</p>
<p>anton@anton-laptop classes $ time java The_proper_half 4000</p>
<p>real	0m0.292s<br />
user	0m0.384s<br />
sys	0m0.028s<br />
anton@anton-laptop classes $ time java Half_of_a_half 4000</p>
<p>real	0m21.830s<br />
user	0m22.169s<br />
sys	0m0.108s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liam McBrien</title>
		<link>http://www.parolski.com/2008/12/13/half-a-half-part-2/comment-page-1/#comment-452</link>
		<dc:creator>Liam McBrien</dc:creator>
		<pubDate>Sun, 14 Dec 2008 13:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.parolski.com/?p=158#comment-452</guid>
		<description>I&#039;d be interested to see how the loop version runs without the System.out calls. I&#039;ll bet it makes a significant difference!</description>
		<content:encoded><![CDATA[<p>I&#8217;d be interested to see how the loop version runs without the System.out calls. I&#8217;ll bet it makes a significant difference!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
