<?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>Kalen Gibbons &#187; static method</title>
	<atom:link href="http://www.kalengibbons.com/blog/index.php/tag/static-method/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kalengibbons.com/blog</link>
	<description>The Dead Tree Blog</description>
	<lastBuildDate>Mon, 24 Oct 2011 20:43:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Performance testing static methods versus instance methods</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/05/performance-testing-static-methods-versus-instance-methods/</link>
		<comments>http://www.kalengibbons.com/blog/index.php/2009/05/performance-testing-static-methods-versus-instance-methods/#comments</comments>
		<pubDate>Wed, 06 May 2009 04:14:29 +0000</pubDate>
		<dc:creator>Kalen Gibbons</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[instance method]]></category>
		<category><![CDATA[performance testing]]></category>
		<category><![CDATA[static method]]></category>

		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=280</guid>
		<description><![CDATA[I was creating several static methods at work today and I started to wonder about how static methods perform versus instance methods. So I created a quick test, that simply calls a static method 5,000,000 times and an instance method the same number of times. Both methods are identical, they simply return true, but as [...]]]></description>
			<content:encoded><![CDATA[<p>I was creating several static methods at work today and I started to wonder about how static methods perform versus instance methods.  So I created a quick test, that simply calls a static method 5,000,000 times and an instance method the same number of times.  Both methods are identical, they simply return true, but as you can see from the results, the static method executes 20-50% slower than the instance method.</p>
<p>To test for yourself, simply click the &quot;Test Instance Method&quot; button to run the instance method test, and then when it’s done you can click the button again to start the static method test.  Your results for each test are displayed in the DataGrid.  All times are represented in milliseconds.</p>
<div style="text-align: center">
You can <a href="http://www.kalengibbons.com/assets/pages/srcview/MethodTesting/" target="_blank">view the source of this application here</a>.<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_MethodTesting_1735490552"
			class="flashmovie"
			width="575"
			height="250">
	<param name="movie" value="/assets/flash/MethodTesting.swf" />
	<param name="bgcolor" value="#000000" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/assets/flash/MethodTesting.swf"
			name="fm_MethodTesting_1735490552"
			width="575"
			height="250">
		<param name="bgcolor" value="#000000" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></div>
]]></content:encoded>
			<wfw:commentRss>http://www.kalengibbons.com/blog/index.php/2009/05/performance-testing-static-methods-versus-instance-methods/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

