Thanks for the suggestion. On one of our boxes (without robust error 
handling) processing times increase to 8 times with your script. I modified 
it so it was still performing a division operation (y=x/1) to improve the 
validity of the script. 

I appreciate the ideas.

Adam

On 7/19/05, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> 
> <cfset starttime = getTickCount()>
> <cfloop index="x" from="1" to="4000">
> <cftry><cfset y = x>
> <cfcatch></cfcatch></cftry></cfloop>
> <cfset ms = getTickCount()-starttime>
> <cfset normal = ms>
> <cfoutput>
> <div>
> normal time = #ms# milliseconds
> </div>
> </cfoutput>
> 
> <cfset starttime = getTickCount()>
> <cfloop index="x" from="1" to="4000">
> <cftry><cfset y = x/0>
> <cfcatch></cfcatch></cftry></cfloop>
> <cfset ms = getTickCount()-starttime>
> <cfoutput>
> <div>
> error time = #ms# milliseconds
> </div>
> </cfoutput>
> <cfset m = ms / normal>
> <cfoutput><div>increase = x#int(m)#</div></cfoutput>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212203
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to