David Harris's Technology Blog

ColdFusion, Flex, and other stuff...   (and 354,854 hours, 43 mins in to my plan for global domination)

Search:

Calendar:

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Subscribe:

Enter your email address to subscribe to this blog.

Archives By Subject:

Tags:

action script adobe air ajax cfug coldfusion flash flex frameworks free software fxug general jpgmetadatareader mac off topic opensource papervision spry

Recent Entries:

No recent entries.

Top Posts:

Recent Comments:

Top Commenters:

My Links:

RSS:


I won!

Over at BlogInBlock, Kai ran a Travel mashup raffle, which I won by being the first person to respond.

The fact we are in the same time zone gave me the upper hand!

*WHY* is CF8 so quick?

answer: Cause the ColdFusion Development team did lots of work!

When I started hear about how fast CF8 was I asked my self the question "I wonder how much of this is to do with the fact that CF8 is running on Java 6?"

I decided to run a quick test.

With my CF8 deployed on my old Jrun setup, using JVM 1.4.2, I did the olde (worst) load test and looped over instantiating CFC lots of times.

Here is my code:

Bob.cfc

<cfcomponent output="false">

</cfcomponent>

Bob.cfm

<cfset iCount = 10000>


<cfset tcOne   = getTickCount()>

<cfloop from="1" to="#iCount#" index="iIndex">

   <cfset oBob   = createObject("component","bob")>

</cfloop>

<cfset tcTwo   = getTickCount()>

<cfoutput>
   <h2>Creating an object #iCount# times</h2>
   <p>
      Total: #tcTwo - tcOne# ms
   </p>
   <p>
      Average #(tcTwo - tcOne) / iCount# ms
   </p>
</cfoutput>

CF7 Results:

Creating an object 10000 times Total: 28250 ms

Average 2.825 ms

CF8 Results:

Creating an object 10000 times Total: 5890 ms

Average 0.589 ms

So, while I suspect having a newer JVM to back up CF8 installs *helps* with speed, it looks to me that it's a lot more than the JVM making it go like a scorpion strapped to a large rocket! :-)