I got:

normal time = 0 milliseconds
error time = 125 milliseconds

division by zero error!

-----Original Message-----
From: S.Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: 19 July 2005 15:49
To: CF-Talk
Subject: Re: CFError performance


Minor revisions to the script:

<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>

I ran this on our development server and got these results:

normal time = 15 milliseconds
error time = 20813 milliseconds
increase = x1387

Although I think we have robust error information enabled on this
server -- if robust error info is disabled I don't think the gap is
nearly as wide.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:212205
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