I just ran a quick test:

<cfset w=1>
<cfset x=2>
<cfset y=3>
<cfset z=4>

against

<cfscript>
a=1;
b=2;
c=3;
d=4;
</cfscript>


The cfscript consistently ran at least 10ms faster than the <cfset> block
over 1000 iterations

For this comparison:

<cfloop from="1" to="10" index="i">
<cfset x=i>
</cfloop>

against

<cfscript>
for(a=i;a lte 10;a=a+1)
y=a;
</cfscript>

The cfscript ran about 100ms faster for the <cfscript> over 1000 iterations

Both of these comparisons done with CF5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to