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:
Action Script (2) [RSS]
Adobe (33) [RSS]
AIR (7) [RSS]
Ajax (3) [RSS]
Buzzword (1) [RSS]
CFUG (42) [RSS]
ColdFusion (70) [RSS]
Flash (6) [RSS]
Flex (40) [RSS]
Frameworks (3) [RSS]
Free Software (2) [RSS]
FXUG (22) [RSS]
General (35) [RSS]
JpgMetadataReader (3) [RSS]
jQuery (1) [RSS]
Mac (2) [RSS]
Off Topic (13) [RSS]
OpenSource (14) [RSS]
PaperVision (10) [RSS]
Spry (2) [RSS]
Transfer (1) [RSS]
Adobe (33) [RSS]
AIR (7) [RSS]
Ajax (3) [RSS]
Buzzword (1) [RSS]
CFUG (42) [RSS]
ColdFusion (70) [RSS]
Flash (6) [RSS]
Flex (40) [RSS]
Frameworks (3) [RSS]
Free Software (2) [RSS]
FXUG (22) [RSS]
General (35) [RSS]
JpgMetadataReader (3) [RSS]
jQuery (1) [RSS]
Mac (2) [RSS]
Off Topic (13) [RSS]
OpenSource (14) [RSS]
PaperVision (10) [RSS]
Spry (2) [RSS]
Transfer (1) [RSS]
Tags:
action script
adobe
air
ajax
cfug
coldfusion
flash
flex
frameworks
free software
fxug
general
jpgmetadatareader
mac
off topic
opensource
papervision
spry
Recent Entries:
Top Posts:
- [23063] Paper Vision 3D Sphere - Carousels on Steroids!
- [15577] Simple Dynamic Cursor Example in Flex2: With source code
- [14385] Simple PaperVision3D Blurring example : source code
- [13774] Simple PaperVision3D Blurring example
- [13036] Saving images from Flex using ColdFusion: Simple Example with source code
- [12609] PaperVision3D/Flex2 Carousel v0.2
- [12515] Carousel v0.2 - source code
- [11647] PaperVision Carousel0.3 - one step closer to the master plan!
- [11327] Simple Effects on a Form - Flex Example
- [10406] PaperVision3D is good for cubes! - a "geek" gift
Recent Comments:
- Simple Effects on a Form - Flex Example
Flex Newbie said: Wow! This page is by far the best page I've seen all month. It's so cool!!! It really made my day. ... [More] - Paper Vision 3D Sphere - Carousels on Steroids!
Reflexion Graphic said: Nice job ! [More] - Getting Red from my color
David said: @Promethe: Thanks for the comment. Jason uses that way too in his example. working with number as n... [More] - Getting Red from my color
Promethe said: guys... seriously: var myColor : uint = 0xef556ef; var myRed : uint = (myColor >> 16) & ... [More] - Getting Red from my color
David said: @Jason: Thanks for the example! I never like working with numbers-to-strings-to-numbers. I'll pull y... [More]
Top Commenters:
- [8] Campbell
- [8] Ben Nadel
- [6] Steve Bryant
- [6] Mark Flewellen
- [4] barry.b
- [4] Raymond Camden
- [3] John Whish
- [3] Peter Bell
- [2] riabook
- [2] carlos
My Links:
RSS:
*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>
</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>
<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 msAverage 2.825 ms
CF8 Results:
Creating an object 10000 times Total: 5890 msAverage 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! :-)

Thanks for the comment, and keep up the good work!
After not being able to replicate Adobe's stated speed of around 200ms for the creation of 10,000 cfc instances (http://www.adobe.com/products/coldfusion/pdfs/cf8_...) I decided to see what impact changing the cache settings had.
It turns out that if you enable Trusted Cache in the cfide, it has a MASSIVE impact on bulk-CFC creation. After turning on trusted cache
we are getting numbers of around 250ms for 10,000 instances!
It turns out that if you don't have trusted cache turned on then for each CFC creation in a loop, coldfusion does around FORTY low-level harddisk actions (as measured by the File Monitor from sysinternals.com). NB: The amount of low-level actions depends on how many folders deep your CFC is stored.
Unbelievably, without trusted cache turned on, CF repeatedly reads the CFC off the harddisk even within the same request.
Surely this should be cached within the same request automatically ...