Straight CFMX (cfml) code is even pathetic....it takes 11006ms to run
the same code, if you change looping to <cfscript>, it gives almost the
same results as before 3014ms

Joe

<cfset loops=1000000>
<cfset z=0>
<cfset sTime=GetTickCount()>
<cfoutput>
#loops#<br>
#sTime# ms Start Time<br>
</cfoutput>
<cfloop index="x" from="1" to="1000000">
<cfset z=z+x>
</cfloop>
<cfset eTime=GetTickCount()>
<cfoutput>
#z# Result<br>
#eTime# ms End Time<br>
#eTime-sTime# ms Execution Time<br>
#((eTime-sTime)/1000)# seconds
</cfoutput>


> -----Original Message-----
> From: Zac Spitzer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 10:57 AM
> To: CF-Talk
> Subject: Re: FW: Jsp Vs Cfm (CFMX) -- Test Code
> 
> 
> and writeoutput in cf 5.0 is slower than cfoutput, did you try the same 
> test with cfml and not cfscript ?
> 
> z
> 
> 
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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