<?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: Which comparator, test, bracket, or double bracket, is fastest?</title>
	<atom:link href="http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html/feed" rel="self" type="application/rss+xml" />
	<link>http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html</link>
	<description>Learn the UNIX/Linux command line</description>
	<lastBuildDate>Mon, 06 Jun 2011 01:35:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: bun</title>
		<link>http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html/comment-page-1#comment-33401</link>
		<dc:creator>bun</dc:creator>
		<pubDate>Thu, 12 Nov 2009 02:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html#comment-33401</guid>
		<description>$ though the diff in speed between [ and &#039;test&#039; is significant in iteration, it&#039;s trivial compared to the use of [[ since bash doesn&#039;t perform path expansion &amp; word splitting, other expansions (var, arith, ...) are still performed</description>
		<content:encoded><![CDATA[<p>$ though the diff in speed between [ and &#8216;test&#8217; is significant in iteration, it&#8217;s trivial compared to the use of [[ since bash doesn&#8217;t perform path expansion &amp; word splitting, other expansions (var, arith, &#8230;) are still performed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Six ways to speed up your shell scripts</title>
		<link>http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html/comment-page-1#comment-4960</link>
		<dc:creator>Six ways to speed up your shell scripts</dc:creator>
		<pubDate>Sat, 22 Mar 2008 03:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html#comment-4960</guid>
		<description>[...] reading Shell Scripting Recipes, I became more interested in the speed of shell operations. In his book, Chris shows says &#8220;Command Substitution Is Slow.&#8221; He is [...]</description>
		<content:encoded><![CDATA[<p>[...] reading Shell Scripting Recipes, I became more interested in the speed of shell operations. In his book, Chris shows says &#8220;Command Substitution Is Slow.&#8221; He is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html/comment-page-1#comment-2543</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 25 Jan 2008 00:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html#comment-2543</guid>
		<description>Can Bican,

Although its not related to the speed, that is a very good article as many admins do not work in as homogeneous environments as myself.

Thanks for the link!</description>
		<content:encoded><![CDATA[<p>Can Bican,</p>
<p>Although its not related to the speed, that is a very good article as many admins do not work in as homogeneous environments as myself.</p>
<p>Thanks for the link!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html/comment-page-1#comment-2542</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 25 Jan 2008 00:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html#comment-2542</guid>
		<description>eliott,

Good point. I thought about that, but figured since they all can be used that way and it would be cached, it was a valid test.

However, if the single bracket performs better in string comparisons, that should be noted as well.</description>
		<content:encoded><![CDATA[<p>eliott,</p>
<p>Good point. I thought about that, but figured since they all can be used that way and it would be cached, it was a valid test.</p>
<p>However, if the single bracket performs better in string comparisons, that should be noted as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eliott</title>
		<link>http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html/comment-page-1#comment-2531</link>
		<dc:creator>eliott</dc:creator>
		<pubDate>Thu, 24 Jan 2008 19:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html#comment-2531</guid>
		<description>Interesting.

It probably isn&#039;t good that you are doing stat calls on the filesystem (even though they are cached) for your test though.

Doing string comparison may be a better example.

$ time for i in {1..100000}; do [[ &quot;foo&quot; = &quot;foo&quot; ]]; done
real    0m1.386s
user    0m1.368s
sys     0m0.016s

$ time for i in {1..100000}; do [ &quot;foo&quot; = &quot;foo&quot; ]; done
real    0m1.957s
user    0m1.904s
sys     0m0.052s</description>
		<content:encoded><![CDATA[<p>Interesting.</p>
<p>It probably isn&#8217;t good that you are doing stat calls on the filesystem (even though they are cached) for your test though.</p>
<p>Doing string comparison may be a better example.</p>
<p>$ time for i in {1..100000}; do [[ "foo" = "foo" ]]; done<br />
real    0m1.386s<br />
user    0m1.368s<br />
sys     0m0.016s</p>
<p>$ time for i in {1..100000}; do [ "foo" = "foo" ]; done<br />
real    0m1.957s<br />
user    0m1.904s<br />
sys     0m0.052s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Can Bican</title>
		<link>http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html/comment-page-1#comment-2487</link>
		<dc:creator>Can Bican</dc:creator>
		<pubDate>Thu, 24 Jan 2008 07:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/which-comparator-test-bracket-or-double-bracket-is-fastest.html#comment-2487</guid>
		<description>Not really related, but here is another discussion about compatibility of test operations:

http://www.linuxtopia.org/online_books/linux_development_tools/libtool_autoconf_automake_book/autobook_216.html</description>
		<content:encoded><![CDATA[<p>Not really related, but here is another discussion about compatibility of test operations:</p>
<p><a href="http://www.linuxtopia.org/online_books/linux_development_tools/libtool_autoconf_automake_book/autobook_216.html" rel="nofollow">http://www.linuxtopia.org/online_books/linux_development_tools/libtool_autoconf_automake_book/autobook_216.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.202 seconds -->

