<?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: Performance testing static methods versus instance methods</title>
	<atom:link href="http://www.kalengibbons.com/blog/index.php/2009/05/performance-testing-static-methods-versus-instance-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kalengibbons.com/blog/index.php/2009/05/performance-testing-static-methods-versus-instance-methods/</link>
	<description>The Dead Tree Blog</description>
	<lastBuildDate>Wed, 18 Jan 2012 08:30:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kalen Gibbons</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/05/performance-testing-static-methods-versus-instance-methods/comment-page-1/#comment-6038</link>
		<dc:creator>Kalen Gibbons</dc:creator>
		<pubDate>Thu, 15 Apr 2010 03:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=280#comment-6038</guid>
		<description>Thanks for the feedback Ian, that&#039;s really interesting.  I assumed that the difference in time was in looking up the class definition, and that&#039;s what I was really trying to verify with this experiment.  At the time, I was writing a collection of utility classes that contained nothing but static methods, and I was curious about how this approach would effect performance versus an instance implementation.

I didn&#039;t try testing a static and instance method within the same class, so thanks for providing us with that information.</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback Ian, that&#8217;s really interesting.  I assumed that the difference in time was in looking up the class definition, and that&#8217;s what I was really trying to verify with this experiment.  At the time, I was writing a collection of utility classes that contained nothing but static methods, and I was curious about how this approach would effect performance versus an instance implementation.</p>
<p>I didn&#8217;t try testing a static and instance method within the same class, so thanks for providing us with that information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Appleby</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/05/performance-testing-static-methods-versus-instance-methods/comment-page-1/#comment-6031</link>
		<dc:creator>Ian Appleby</dc:creator>
		<pubDate>Wed, 14 Apr 2010 20:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=280#comment-6031</guid>
		<description>Interesting, although I don&#039;t think it&#039;s the method call itself which takes the time.

I tried moving both the test methods to the calling class.  This changed the results significantly.  The times are now almost identical.  This suggests the time is taken finding the definition of the TestStaticMethod class each time, rather than running the method itself.  That could still matter, but it&#039;s a different outcome.

What&#039;s perhaps more interesting, is that the instance method got slower.  Now I&#039;m not exactly sure, but I suspect this is due to the additional work of finding the method on a larger class.</description>
		<content:encoded><![CDATA[<p>Interesting, although I don&#8217;t think it&#8217;s the method call itself which takes the time.</p>
<p>I tried moving both the test methods to the calling class.  This changed the results significantly.  The times are now almost identical.  This suggests the time is taken finding the definition of the TestStaticMethod class each time, rather than running the method itself.  That could still matter, but it&#8217;s a different outcome.</p>
<p>What&#8217;s perhaps more interesting, is that the instance method got slower.  Now I&#8217;m not exactly sure, but I suspect this is due to the additional work of finding the method on a larger class.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

